Class Draft.Builder (0.14.1)

public static final class Draft.Builder extends GeneratedMessageV3.Builder<Draft.Builder> implements DraftOrBuilder

Message describing Draft object

Protobuf type google.events.cloud.visionai.v1.Draft

Implements

DraftOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Draft.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Draft.Builder
Overrides

build()

public Draft build()
Returns
TypeDescription
Draft

buildPartial()

public Draft buildPartial()
Returns
TypeDescription
Draft

clear()

public Draft.Builder clear()
Returns
TypeDescription
Draft.Builder
Overrides

clearCreateTime()

public Draft.Builder clearCreateTime()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Draft.Builder

clearDescription()

public Draft.Builder clearDescription()

A description for this application.

string description = 5;

Returns
TypeDescription
Draft.Builder

This builder for chaining.

clearDisplayName()

public Draft.Builder clearDisplayName()

Required. A user friendly display name for the solution.

string display_name = 4;

Returns
TypeDescription
Draft.Builder

This builder for chaining.

clearDraftApplicationConfigs()

public Draft.Builder clearDraftApplicationConfigs()

The draft application configs which haven't been updated to an application.

.google.events.cloud.visionai.v1.ApplicationConfigs draft_application_configs = 6;

Returns
TypeDescription
Draft.Builder

clearField(Descriptors.FieldDescriptor field)

public Draft.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Draft.Builder
Overrides

clearLabels()

public Draft.Builder clearLabels()
Returns
TypeDescription
Draft.Builder

clearName()

public Draft.Builder clearName()

name of resource

string name = 1;

Returns
TypeDescription
Draft.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Draft.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Draft.Builder
Overrides

clearUpdateTime()

public Draft.Builder clearUpdateTime()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp update_time = 7;

Returns
TypeDescription
Draft.Builder

clone()

public Draft.Builder clone()
Returns
TypeDescription
Draft.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs

map<string, string> labels = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Draft getDefaultInstanceForType()
Returns
TypeDescription
Draft

getDescription()

public String getDescription()

A description for this application.

string description = 5;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A description for this application.

string description = 5;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. A user friendly display name for the solution.

string display_name = 4;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. A user friendly display name for the solution.

string display_name = 4;

Returns
TypeDescription
ByteString

The bytes for displayName.

getDraftApplicationConfigs()

public ApplicationConfigs getDraftApplicationConfigs()

The draft application configs which haven't been updated to an application.

.google.events.cloud.visionai.v1.ApplicationConfigs draft_application_configs = 6;

Returns
TypeDescription
ApplicationConfigs

The draftApplicationConfigs.

getDraftApplicationConfigsBuilder()

public ApplicationConfigs.Builder getDraftApplicationConfigsBuilder()

The draft application configs which haven't been updated to an application.

.google.events.cloud.visionai.v1.ApplicationConfigs draft_application_configs = 6;

Returns
TypeDescription
ApplicationConfigs.Builder

getDraftApplicationConfigsOrBuilder()

public ApplicationConfigsOrBuilder getDraftApplicationConfigsOrBuilder()

The draft application configs which haven't been updated to an application.

.google.events.cloud.visionai.v1.ApplicationConfigs draft_application_configs = 6;

Returns
TypeDescription
ApplicationConfigsOrBuilder

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs

map<string, string> labels = 3;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs

map<string, string> labels = 3;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels as key value pairs

map<string, string> labels = 3;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs

map<string, string> labels = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

name of resource

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

name of resource

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp update_time = 7;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp update_time = 7;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp update_time = 7;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDraftApplicationConfigs()

public boolean hasDraftApplicationConfigs()

The draft application configs which haven't been updated to an application.

.google.events.cloud.visionai.v1.ApplicationConfigs draft_application_configs = 6;

Returns
TypeDescription
boolean

Whether the draftApplicationConfigs field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp update_time = 7;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Draft.Builder mergeCreateTime(Timestamp value)

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Draft.Builder

mergeDraftApplicationConfigs(ApplicationConfigs value)

public Draft.Builder mergeDraftApplicationConfigs(ApplicationConfigs value)

The draft application configs which haven't been updated to an application.

.google.events.cloud.visionai.v1.ApplicationConfigs draft_application_configs = 6;

Parameter
NameDescription
valueApplicationConfigs
Returns
TypeDescription
Draft.Builder

mergeFrom(Draft other)

public Draft.Builder mergeFrom(Draft other)
Parameter
NameDescription
otherDraft
Returns
TypeDescription
Draft.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Draft.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Draft.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Draft.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Draft.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Draft.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Draft.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Draft.Builder mergeUpdateTime(Timestamp value)

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp update_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Draft.Builder

putAllLabels(Map<String,String> values)

public Draft.Builder putAllLabels(Map<String,String> values)

Labels as key value pairs

map<string, string> labels = 3;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Draft.Builder

putLabels(String key, String value)

public Draft.Builder putLabels(String key, String value)

Labels as key value pairs

map<string, string> labels = 3;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Draft.Builder

removeLabels(String key)

public Draft.Builder removeLabels(String key)

Labels as key value pairs

map<string, string> labels = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
Draft.Builder

setCreateTime(Timestamp value)

public Draft.Builder setCreateTime(Timestamp value)

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Draft.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Draft.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Draft.Builder

setDescription(String value)

public Draft.Builder setDescription(String value)

A description for this application.

string description = 5;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Draft.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Draft.Builder setDescriptionBytes(ByteString value)

A description for this application.

string description = 5;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Draft.Builder

This builder for chaining.

setDisplayName(String value)

public Draft.Builder setDisplayName(String value)

Required. A user friendly display name for the solution.

string display_name = 4;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Draft.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Draft.Builder setDisplayNameBytes(ByteString value)

Required. A user friendly display name for the solution.

string display_name = 4;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Draft.Builder

This builder for chaining.

setDraftApplicationConfigs(ApplicationConfigs value)

public Draft.Builder setDraftApplicationConfigs(ApplicationConfigs value)

The draft application configs which haven't been updated to an application.

.google.events.cloud.visionai.v1.ApplicationConfigs draft_application_configs = 6;

Parameter
NameDescription
valueApplicationConfigs
Returns
TypeDescription
Draft.Builder

setDraftApplicationConfigs(ApplicationConfigs.Builder builderForValue)

public Draft.Builder setDraftApplicationConfigs(ApplicationConfigs.Builder builderForValue)

The draft application configs which haven't been updated to an application.

.google.events.cloud.visionai.v1.ApplicationConfigs draft_application_configs = 6;

Parameter
NameDescription
builderForValueApplicationConfigs.Builder
Returns
TypeDescription
Draft.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Draft.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Draft.Builder
Overrides

setName(String value)

public Draft.Builder setName(String value)

name of resource

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Draft.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Draft.Builder setNameBytes(ByteString value)

name of resource

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Draft.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Draft.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Draft.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Draft.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Draft.Builder
Overrides

setUpdateTime(Timestamp value)

public Draft.Builder setUpdateTime(Timestamp value)

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp update_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Draft.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Draft.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Create timestamp

.google.protobuf.Timestamp update_time = 7;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Draft.Builder