Class ChangeLogEntry.Builder (0.8.0)

public static final class ChangeLogEntry.Builder extends GeneratedMessageV3.Builder<ChangeLogEntry.Builder> implements ChangeLogEntryOrBuilder

A log entry of a change made to an order.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ChangeLogEntry.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ChangeLogEntry.Builder
Overrides

build()

public ChangeLogEntry build()
Returns
Type Description
ChangeLogEntry

buildPartial()

public ChangeLogEntry buildPartial()
Returns
Type Description
ChangeLogEntry

clear()

public ChangeLogEntry.Builder clear()
Returns
Type Description
ChangeLogEntry.Builder
Overrides

clearCreateTime()

public ChangeLogEntry.Builder clearCreateTime()

Output only. Time when this change log entry was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ChangeLogEntry.Builder

clearField(Descriptors.FieldDescriptor field)

public ChangeLogEntry.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ChangeLogEntry.Builder
Overrides

clearLabels()

public ChangeLogEntry.Builder clearLabels()
Returns
Type Description
ChangeLogEntry.Builder

clearLog()

public ChangeLogEntry.Builder clearLog()

Output only. Content of this log entry.

string log = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ChangeLogEntry.Builder

This builder for chaining.

clearName()

public ChangeLogEntry.Builder clearName()

Identifier. Name of this change log entry. Format: projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ChangeLogEntry.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ChangeLogEntry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ChangeLogEntry.Builder
Overrides

clone()

public ChangeLogEntry.Builder clone()
Returns
Type Description
ChangeLogEntry.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels associated with this change log entry as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. Time when this change log entry was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time when this change log entry was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when this change log entry was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ChangeLogEntry getDefaultInstanceForType()
Returns
Type Description
ChangeLogEntry

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels associated with this change log entry as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels associated with this change log entry as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Labels associated with this change log entry as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Labels associated with this change log entry as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getLog()

public String getLog()

Output only. Content of this log entry.

string log = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The log.

getLogBytes()

public ByteString getLogBytes()

Output only. Content of this log entry.

string log = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for log.

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Identifier. Name of this change log entry. Format: projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Name of this change log entry. Format: projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

hasCreateTime()

public boolean hasCreateTime()

Output only. Time when this change log entry was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public ChangeLogEntry.Builder mergeCreateTime(Timestamp value)

Output only. Time when this change log entry was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ChangeLogEntry.Builder

mergeFrom(ChangeLogEntry other)

public ChangeLogEntry.Builder mergeFrom(ChangeLogEntry other)
Parameter
Name Description
other ChangeLogEntry
Returns
Type Description
ChangeLogEntry.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ChangeLogEntry.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChangeLogEntry.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ChangeLogEntry.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ChangeLogEntry.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ChangeLogEntry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ChangeLogEntry.Builder
Overrides

putAllLabels(Map<String,String> values)

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

Optional. Labels associated with this change log entry as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
ChangeLogEntry.Builder

putLabels(String key, String value)

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

Optional. Labels associated with this change log entry as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
ChangeLogEntry.Builder

removeLabels(String key)

public ChangeLogEntry.Builder removeLabels(String key)

Optional. Labels associated with this change log entry as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
ChangeLogEntry.Builder

setCreateTime(Timestamp value)

public ChangeLogEntry.Builder setCreateTime(Timestamp value)

Output only. Time when this change log entry was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ChangeLogEntry.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ChangeLogEntry.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time when this change log entry was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ChangeLogEntry.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ChangeLogEntry.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ChangeLogEntry.Builder
Overrides

setLog(String value)

public ChangeLogEntry.Builder setLog(String value)

Output only. Content of this log entry.

string log = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The log to set.

Returns
Type Description
ChangeLogEntry.Builder

This builder for chaining.

setLogBytes(ByteString value)

public ChangeLogEntry.Builder setLogBytes(ByteString value)

Output only. Content of this log entry.

string log = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for log to set.

Returns
Type Description
ChangeLogEntry.Builder

This builder for chaining.

setName(String value)

public ChangeLogEntry.Builder setName(String value)

Identifier. Name of this change log entry. Format: projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ChangeLogEntry.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ChangeLogEntry.Builder setNameBytes(ByteString value)

Identifier. Name of this change log entry. Format: projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ChangeLogEntry.Builder

This builder for chaining.

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

public ChangeLogEntry.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ChangeLogEntry.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ChangeLogEntry.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ChangeLogEntry.Builder
Overrides