public static final class Resource.Builder extends GeneratedMessage.Builder<Resource.Builder> implements ResourceOrBuilderAn entity that can have metadata. For example, a Docker image.
Protobuf type grafeas.v1beta1.Resource
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Resource.BuilderImplements
ResourceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Resource build()| Returns | |
|---|---|
| Type | Description |
Resource |
|
buildPartial()
public Resource buildPartial()| Returns | |
|---|---|
| Type | Description |
Resource |
|
clear()
public Resource.Builder clear()| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
clearContentHash()
public Resource.Builder clearContentHash()The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
clearName()
public Resource.Builder clearName()The name of the resource. For example, the name of a Docker image - "Debian".
string name = 1;
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
This builder for chaining. |
clearUri()
public Resource.Builder clearUri() Required. The unique URI of the resource. For example,
https://gcr.io/project/image@sha256:foo for a Docker image.
string uri = 2;
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
This builder for chaining. |
getContentHash()
public Hash getContentHash()The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
| Returns | |
|---|---|
| Type | Description |
Hash |
The contentHash. |
getContentHashBuilder()
public Hash.Builder getContentHashBuilder()The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
| Returns | |
|---|---|
| Type | Description |
Hash.Builder |
|
getContentHashOrBuilder()
public HashOrBuilder getContentHashOrBuilder()The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
| Returns | |
|---|---|
| Type | Description |
HashOrBuilder |
|
getDefaultInstanceForType()
public Resource getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Resource |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()The name of the resource. For example, the name of a Docker image - "Debian".
string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()The name of the resource. For example, the name of a Docker image - "Debian".
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getUri()
public String getUri() Required. The unique URI of the resource. For example,
https://gcr.io/project/image@sha256:foo for a Docker image.
string uri = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The uri. |
getUriBytes()
public ByteString getUriBytes() Required. The unique URI of the resource. For example,
https://gcr.io/project/image@sha256:foo for a Docker image.
string uri = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for uri. |
hasContentHash()
public boolean hasContentHash()The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the contentHash field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeContentHash(Hash value)
public Resource.Builder mergeContentHash(Hash value)The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Hash |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Resource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Resource.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
mergeFrom(Resource other)
public Resource.Builder mergeFrom(Resource other)| Parameter | |
|---|---|
| Name | Description |
other |
Resource |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
setContentHash(Hash value)
public Resource.Builder setContentHash(Hash value)The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Hash |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
setContentHash(Hash.Builder builderForValue)
public Resource.Builder setContentHash(Hash.Builder builderForValue)The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Hash.Builder |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
|
setName(String value)
public Resource.Builder setName(String value)The name of the resource. For example, the name of a Docker image - "Debian".
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Resource.Builder setNameBytes(ByteString value)The name of the resource. For example, the name of a Docker image - "Debian".
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
This builder for chaining. |
setUri(String value)
public Resource.Builder setUri(String value) Required. The unique URI of the resource. For example,
https://gcr.io/project/image@sha256:foo for a Docker image.
string uri = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe uri to set. |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
This builder for chaining. |
setUriBytes(ByteString value)
public Resource.Builder setUriBytes(ByteString value) Required. The unique URI of the resource. For example,
https://gcr.io/project/image@sha256:foo for a Docker image.
string uri = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for uri to set. |
| Returns | |
|---|---|
| Type | Description |
Resource.Builder |
This builder for chaining. |