Package io.grafeas.v1beta1
Class Resource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Resource.Builder>
io.grafeas.v1beta1.Resource.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ResourceOrBuilder,Cloneable
- Enclosing class:
- Resource
public static final class Resource.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Resource.Builder>
implements ResourceOrBuilder
An entity that can have metadata. For example, a Docker image.Protobuf type
grafeas.v1beta1.Resource-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The hash of the resource content.The name of the resource.clearUri()Required.The hash of the resource content.The hash of the resource content.The hash of the resource content.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()The name of the resource.com.google.protobuf.ByteStringThe name of the resource.getUri()Required.com.google.protobuf.ByteStringRequired.booleanThe hash of the resource content.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeContentHash(Hash value) The hash of the resource content.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setContentHash(Hash value) The hash of the resource content.setContentHash(Hash.Builder builderForValue) The hash of the resource content.The name of the resource.setNameBytes(com.google.protobuf.ByteString value) The name of the resource.Required.setUriBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Resource.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Resource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Resource.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Resource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Resource.Builder>
-
mergeFrom
public Resource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Resource.Builder>- Throws:
IOException
-
getName
The name of the resource. For example, the name of a Docker image - "Debian".
string name = 1;- Specified by:
getNamein interfaceResourceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the resource. For example, the name of a Docker image - "Debian".
string name = 1;- Specified by:
getNameBytesin interfaceResourceOrBuilder- Returns:
- The bytes for name.
-
setName
The name of the resource. For example, the name of a Docker image - "Debian".
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the resource. For example, the name of a Docker image - "Debian".
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The name of the resource. For example, the name of a Docker image - "Debian".
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getUri
Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
string uri = 2;- Specified by:
getUriin interfaceResourceOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.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;- Specified by:
getUriBytesin interfaceResourceOrBuilder- Returns:
- The bytes for uri.
-
setUri
Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
string uri = 2;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setUriBytes
Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
string uri = 2;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
hasContentHash
public boolean hasContentHash()The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;- Specified by:
hasContentHashin interfaceResourceOrBuilder- Returns:
- Whether the contentHash field is set.
-
getContentHash
The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;- Specified by:
getContentHashin interfaceResourceOrBuilder- Returns:
- The contentHash.
-
setContentHash
The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3; -
setContentHash
The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3; -
mergeContentHash
The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3; -
clearContentHash
The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3; -
getContentHashBuilder
The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3; -
getContentHashOrBuilder
The hash of the resource content. For example, the Docker digest.
.grafeas.v1beta1.provenance.Hash content_hash = 3;- Specified by:
getContentHashOrBuilderin interfaceResourceOrBuilder
-