Package com.google.cloud.automl.v1beta1
Class Image.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Image.Builder>
com.google.cloud.automl.v1beta1.Image.Builder
- All Implemented Interfaces:
ImageOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Image
public static final class Image.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Image.Builder>
implements ImageOrBuilder
A representation of an image. Only images up to 30MB in size are supported.Protobuf type
google.cloud.automl.v1beta1.Image-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Image content represented as a stream of bytes.An input config specifying the content of the image.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteStringImage content represented as a stream of bytes.An input config specifying the content of the image.An input config specifying the content of the image.An input config specifying the content of the image.Output only.com.google.protobuf.ByteStringOutput only.booleanImage content represented as a stream of bytes.booleanAn input config specifying the content of the image.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeInputConfig(InputConfig value) An input config specifying the content of the image.setImageBytes(com.google.protobuf.ByteString value) Image content represented as a stream of bytes.setInputConfig(InputConfig value) An input config specifying the content of the image.setInputConfig(InputConfig.Builder builderForValue) An input config specifying the content of the image.setThumbnailUri(String value) Output only.setThumbnailUriBytes(com.google.protobuf.ByteString value) Output only.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<Image.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<Image.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<Image.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<Image.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Image.Builder>
-
mergeFrom
public Image.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<Image.Builder>- Throws:
IOException
-
getDataCase
- Specified by:
getDataCasein interfaceImageOrBuilder
-
clearData
-
hasImageBytes
public boolean hasImageBytes()Image content represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
bytes image_bytes = 1;- Specified by:
hasImageBytesin interfaceImageOrBuilder- Returns:
- Whether the imageBytes field is set.
-
getImageBytes
public com.google.protobuf.ByteString getImageBytes()Image content represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
bytes image_bytes = 1;- Specified by:
getImageBytesin interfaceImageOrBuilder- Returns:
- The imageBytes.
-
setImageBytes
Image content represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
bytes image_bytes = 1;- Parameters:
value- The imageBytes to set.- Returns:
- This builder for chaining.
-
clearImageBytes
Image content represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
bytes image_bytes = 1;- Returns:
- This builder for chaining.
-
hasInputConfig
public boolean hasInputConfig()An input config specifying the content of the image.
.google.cloud.automl.v1beta1.InputConfig input_config = 6;- Specified by:
hasInputConfigin interfaceImageOrBuilder- Returns:
- Whether the inputConfig field is set.
-
getInputConfig
An input config specifying the content of the image.
.google.cloud.automl.v1beta1.InputConfig input_config = 6;- Specified by:
getInputConfigin interfaceImageOrBuilder- Returns:
- The inputConfig.
-
setInputConfig
An input config specifying the content of the image.
.google.cloud.automl.v1beta1.InputConfig input_config = 6; -
setInputConfig
An input config specifying the content of the image.
.google.cloud.automl.v1beta1.InputConfig input_config = 6; -
mergeInputConfig
An input config specifying the content of the image.
.google.cloud.automl.v1beta1.InputConfig input_config = 6; -
clearInputConfig
An input config specifying the content of the image.
.google.cloud.automl.v1beta1.InputConfig input_config = 6; -
getInputConfigBuilder
An input config specifying the content of the image.
.google.cloud.automl.v1beta1.InputConfig input_config = 6; -
getInputConfigOrBuilder
An input config specifying the content of the image.
.google.cloud.automl.v1beta1.InputConfig input_config = 6;- Specified by:
getInputConfigOrBuilderin interfaceImageOrBuilder
-
getThumbnailUri
Output only. HTTP URI to the thumbnail image.
string thumbnail_uri = 4;- Specified by:
getThumbnailUriin interfaceImageOrBuilder- Returns:
- The thumbnailUri.
-
getThumbnailUriBytes
public com.google.protobuf.ByteString getThumbnailUriBytes()Output only. HTTP URI to the thumbnail image.
string thumbnail_uri = 4;- Specified by:
getThumbnailUriBytesin interfaceImageOrBuilder- Returns:
- The bytes for thumbnailUri.
-
setThumbnailUri
Output only. HTTP URI to the thumbnail image.
string thumbnail_uri = 4;- Parameters:
value- The thumbnailUri to set.- Returns:
- This builder for chaining.
-
clearThumbnailUri
Output only. HTTP URI to the thumbnail image.
string thumbnail_uri = 4;- Returns:
- This builder for chaining.
-
setThumbnailUriBytes
Output only. HTTP URI to the thumbnail image.
string thumbnail_uri = 4;- Parameters:
value- The bytes for thumbnailUri to set.- Returns:
- This builder for chaining.
-