public static final class Resource.Builder extends GeneratedMessageV3.Builder<Resource.Builder> implements ResourceOrBuilder
An entity that can have metadata. For example, a Docker image.
Protobuf type grafeas.v1beta1.Resource
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Resource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Resource buildPartial()
Returns
clear()
public Resource.Builder clear()
Returns
Overrides
clearContentHash()
public Resource.Builder clearContentHash()
The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
Returns
clearField(Descriptors.FieldDescriptor field)
public Resource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearName()
public Resource.Builder clearName()
The name of the resource. For example, the name of a Docker image -
"Debian".
string name = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Resource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearUri()
public Resource.Builder clearUri()
Returns
clone()
public Resource.Builder clone()
Returns
Overrides
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
getContentHashOrBuilder()
public HashOrBuilder getContentHashOrBuilder()
The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;
Returns
getDefaultInstanceForType()
public Resource getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
getUri()
Returns
getUriBytes()
public ByteString getUriBytes()
Returns
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
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
Returns
public Resource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Resource.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(Resource other)
public Resource.Builder mergeFrom(Resource other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Resource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Resource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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 | String
The name to set.
|
Returns
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 | ByteString
The bytes for name to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Resource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Resource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setUri(String value)
public Resource.Builder setUri(String value)
Parameter
Name | Description |
value | String
The uri to set.
|
Returns
setUriBytes(ByteString value)
public Resource.Builder setUriBytes(ByteString value)
Parameter
Name | Description |
value | ByteString
The bytes for uri to set.
|
Returns