Package com.google.cloud.visionai.v1
Class Channel.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Channel.Builder>
com.google.cloud.visionai.v1.Channel.Builder
- All Implemented Interfaces:
ChannelOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Channel
public static final class Channel.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Channel.Builder>
implements ChannelOrBuilder
Message describing the Channel object.Protobuf type
google.cloud.visionai.v1.Channel-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Required.Name of the resource.Required.Output only.booleanAnnotations to allow clients to store small amounts of arbitrary data.booleancontainsLabels(String key) Labels as key value pairs.Deprecated.intAnnotations to allow clients to store small amounts of arbitrary data.Annotations to allow clients to store small amounts of arbitrary data.getAnnotationsOrDefault(String key, String defaultValue) Annotations to allow clients to store small amounts of arbitrary data.Annotations to allow clients to store small amounts of arbitrary data.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEvent()Required.com.google.protobuf.ByteStringRequired.Deprecated.intLabels as key value pairs.Labels as key value pairs.getLabelsOrDefault(String key, String defaultValue) Labels as key value pairs.getLabelsOrThrow(String key) Labels as key value pairs.Deprecated.Deprecated.getName()Name of the resource.com.google.protobuf.ByteStringName of the resource.Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.putAllAnnotations(Map<String, String> values) Annotations to allow clients to store small amounts of arbitrary data.putAllLabels(Map<String, String> values) Labels as key value pairs.putAnnotations(String key, String value) Annotations to allow clients to store small amounts of arbitrary data.Labels as key value pairs.removeAnnotations(String key) Annotations to allow clients to store small amounts of arbitrary data.removeLabels(String key) Labels as key value pairs.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Required.setEventBytes(com.google.protobuf.ByteString value) Required.Name of the resource.setNameBytes(com.google.protobuf.ByteString value) Name of the resource.Required.setStreamBytes(com.google.protobuf.ByteString value) Required.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) 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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Channel.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Channel.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Channel.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<Channel.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<Channel.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<Channel.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Channel.Builder>
-
mergeFrom
public Channel.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<Channel.Builder>- Throws:
IOException
-
getName
Name of the resource.
string name = 1;- Specified by:
getNamein interfaceChannelOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the resource.
string name = 1;- Specified by:
getNameBytesin interfaceChannelOrBuilder- Returns:
- The bytes for name.
-
setName
Name of the resource.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the resource.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Name of the resource.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceChannelOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceChannelOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The create timestamp.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceChannelOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceChannelOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceChannelOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The update timestamp.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceChannelOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:ChannelOrBuilderLabels as key value pairs.
map<string, string> labels = 4;- Specified by:
getLabelsCountin interfaceChannelOrBuilder
-
containsLabels
Labels as key value pairs.
map<string, string> labels = 4;- Specified by:
containsLabelsin interfaceChannelOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceChannelOrBuilder
-
getLabelsMap
Labels as key value pairs.
map<string, string> labels = 4;- Specified by:
getLabelsMapin interfaceChannelOrBuilder
-
getLabelsOrDefault
Labels as key value pairs.
map<string, string> labels = 4;- Specified by:
getLabelsOrDefaultin interfaceChannelOrBuilder
-
getLabelsOrThrow
Labels as key value pairs.
map<string, string> labels = 4;- Specified by:
getLabelsOrThrowin interfaceChannelOrBuilder
-
clearLabels
-
removeLabels
Labels as key value pairs.
map<string, string> labels = 4; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Labels as key value pairs.
map<string, string> labels = 4; -
putAllLabels
Labels as key value pairs.
map<string, string> labels = 4; -
getAnnotationsCount
public int getAnnotationsCount()Description copied from interface:ChannelOrBuilderAnnotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5;- Specified by:
getAnnotationsCountin interfaceChannelOrBuilder
-
containsAnnotations
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5;- Specified by:
containsAnnotationsin interfaceChannelOrBuilder
-
getAnnotations
Deprecated.UsegetAnnotationsMap()instead.- Specified by:
getAnnotationsin interfaceChannelOrBuilder
-
getAnnotationsMap
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5;- Specified by:
getAnnotationsMapin interfaceChannelOrBuilder
-
getAnnotationsOrDefault
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5;- Specified by:
getAnnotationsOrDefaultin interfaceChannelOrBuilder
-
getAnnotationsOrThrow
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5;- Specified by:
getAnnotationsOrThrowin interfaceChannelOrBuilder
-
clearAnnotations
-
removeAnnotations
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5; -
getMutableAnnotations
Deprecated.Use alternate mutation accessors instead. -
putAnnotations
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5; -
putAllAnnotations
Annotations to allow clients to store small amounts of arbitrary data.
map<string, string> annotations = 5; -
getStream
Required. Stream that is associated with this series.
string stream = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getStreamin interfaceChannelOrBuilder- Returns:
- The stream.
-
getStreamBytes
public com.google.protobuf.ByteString getStreamBytes()Required. Stream that is associated with this series.
string stream = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getStreamBytesin interfaceChannelOrBuilder- Returns:
- The bytes for stream.
-
setStream
Required. Stream that is associated with this series.
string stream = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The stream to set.- Returns:
- This builder for chaining.
-
clearStream
Required. Stream that is associated with this series.
string stream = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setStreamBytes
Required. Stream that is associated with this series.
string stream = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for stream to set.- Returns:
- This builder for chaining.
-
getEvent
Required. Event that is associated with this series.
string event = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getEventin interfaceChannelOrBuilder- Returns:
- The event.
-
getEventBytes
public com.google.protobuf.ByteString getEventBytes()Required. Event that is associated with this series.
string event = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getEventBytesin interfaceChannelOrBuilder- Returns:
- The bytes for event.
-
setEvent
Required. Event that is associated with this series.
string event = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The event to set.- Returns:
- This builder for chaining.
-
clearEvent
Required. Event that is associated with this series.
string event = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setEventBytes
Required. Event that is associated with this series.
string event = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for event to set.- Returns:
- This builder for chaining.
-