Class ConfigChange.Builder (2.45.1)

public static final class ConfigChange.Builder extends GeneratedMessageV3.Builder<ConfigChange.Builder> implements ConfigChangeOrBuilder

Output generated from semantically comparing two versions of a service configuration.

Includes detailed information about a field that have changed with applicable advice about potential consequences for the change, such as backwards-incompatibility.

Protobuf type google.api.ConfigChange

Static Methods

getDescriptor()

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

Methods

addAdvices(Advice value)

public ConfigChange.Builder addAdvices(Advice value)

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Parameter
Name Description
value Advice
Returns
Type Description
ConfigChange.Builder

addAdvices(Advice.Builder builderForValue)

public ConfigChange.Builder addAdvices(Advice.Builder builderForValue)

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Parameter
Name Description
builderForValue Advice.Builder
Returns
Type Description
ConfigChange.Builder

addAdvices(int index, Advice value)

public ConfigChange.Builder addAdvices(int index, Advice value)

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Parameters
Name Description
index int
value Advice
Returns
Type Description
ConfigChange.Builder

addAdvices(int index, Advice.Builder builderForValue)

public ConfigChange.Builder addAdvices(int index, Advice.Builder builderForValue)

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Parameters
Name Description
index int
builderForValue Advice.Builder
Returns
Type Description
ConfigChange.Builder

addAdvicesBuilder()

public Advice.Builder addAdvicesBuilder()

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Returns
Type Description
Advice.Builder

addAdvicesBuilder(int index)

public Advice.Builder addAdvicesBuilder(int index)

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Parameter
Name Description
index int
Returns
Type Description
Advice.Builder

addAllAdvices(Iterable<? extends Advice> values)

public ConfigChange.Builder addAllAdvices(Iterable<? extends Advice> values)

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Parameter
Name Description
values Iterable<? extends com.google.api.Advice>
Returns
Type Description
ConfigChange.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConfigChange build()
Returns
Type Description
ConfigChange

buildPartial()

public ConfigChange buildPartial()
Returns
Type Description
ConfigChange

clear()

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

clearAdvices()

public ConfigChange.Builder clearAdvices()

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Returns
Type Description
ConfigChange.Builder

clearChangeType()

public ConfigChange.Builder clearChangeType()

The type for this change, either ADDED, REMOVED, or MODIFIED.

.google.api.ChangeType change_type = 4;

Returns
Type Description
ConfigChange.Builder

This builder for chaining.

clearElement()

public ConfigChange.Builder clearElement()

Object hierarchy path to the change, with levels separated by a '.' character. For repeated fields, an applicable unique identifier field is used for the index (usually selector, name, or id). For maps, the term 'key' is used. If the field has no unique identifier, the numeric index is used. Examples:

  • visibility.rules[selector=="google.LibraryService.ListBooks"].restriction
  • quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
  • logging.producer_destinations[0]

string element = 1;

Returns
Type Description
ConfigChange.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearNewValue()

public ConfigChange.Builder clearNewValue()

Value of the changed object in the new Service configuration, in JSON format. This field will not be populated if ChangeType == REMOVED.

string new_value = 3;

Returns
Type Description
ConfigChange.Builder

This builder for chaining.

clearOldValue()

public ConfigChange.Builder clearOldValue()

Value of the changed object in the old Service configuration, in JSON format. This field will not be populated if ChangeType == ADDED.

string old_value = 2;

Returns
Type Description
ConfigChange.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAdvices(int index)

public Advice getAdvices(int index)

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Parameter
Name Description
index int
Returns
Type Description
Advice

getAdvicesBuilder(int index)

public Advice.Builder getAdvicesBuilder(int index)

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Parameter
Name Description
index int
Returns
Type Description
Advice.Builder

getAdvicesBuilderList()

public List<Advice.Builder> getAdvicesBuilderList()

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Returns
Type Description
List<Builder>

getAdvicesCount()

public int getAdvicesCount()

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Returns
Type Description
int

getAdvicesList()

public List<Advice> getAdvicesList()

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Returns
Type Description
List<Advice>

getAdvicesOrBuilder(int index)

public AdviceOrBuilder getAdvicesOrBuilder(int index)

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Parameter
Name Description
index int
Returns
Type Description
AdviceOrBuilder

getAdvicesOrBuilderList()

public List<? extends AdviceOrBuilder> getAdvicesOrBuilderList()

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Returns
Type Description
List<? extends com.google.api.AdviceOrBuilder>

getChangeType()

public ChangeType getChangeType()

The type for this change, either ADDED, REMOVED, or MODIFIED.

.google.api.ChangeType change_type = 4;

Returns
Type Description
ChangeType

The changeType.

getChangeTypeValue()

public int getChangeTypeValue()

The type for this change, either ADDED, REMOVED, or MODIFIED.

.google.api.ChangeType change_type = 4;

Returns
Type Description
int

The enum numeric value on the wire for changeType.

getDefaultInstanceForType()

public ConfigChange getDefaultInstanceForType()
Returns
Type Description
ConfigChange

getDescriptorForType()

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

getElement()

public String getElement()

Object hierarchy path to the change, with levels separated by a '.' character. For repeated fields, an applicable unique identifier field is used for the index (usually selector, name, or id). For maps, the term 'key' is used. If the field has no unique identifier, the numeric index is used. Examples:

  • visibility.rules[selector=="google.LibraryService.ListBooks"].restriction
  • quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
  • logging.producer_destinations[0]

string element = 1;

Returns
Type Description
String

The element.

getElementBytes()

public ByteString getElementBytes()

Object hierarchy path to the change, with levels separated by a '.' character. For repeated fields, an applicable unique identifier field is used for the index (usually selector, name, or id). For maps, the term 'key' is used. If the field has no unique identifier, the numeric index is used. Examples:

  • visibility.rules[selector=="google.LibraryService.ListBooks"].restriction
  • quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
  • logging.producer_destinations[0]

string element = 1;

Returns
Type Description
ByteString

The bytes for element.

getNewValue()

public String getNewValue()

Value of the changed object in the new Service configuration, in JSON format. This field will not be populated if ChangeType == REMOVED.

string new_value = 3;

Returns
Type Description
String

The newValue.

getNewValueBytes()

public ByteString getNewValueBytes()

Value of the changed object in the new Service configuration, in JSON format. This field will not be populated if ChangeType == REMOVED.

string new_value = 3;

Returns
Type Description
ByteString

The bytes for newValue.

getOldValue()

public String getOldValue()

Value of the changed object in the old Service configuration, in JSON format. This field will not be populated if ChangeType == ADDED.

string old_value = 2;

Returns
Type Description
String

The oldValue.

getOldValueBytes()

public ByteString getOldValueBytes()

Value of the changed object in the old Service configuration, in JSON format. This field will not be populated if ChangeType == ADDED.

string old_value = 2;

Returns
Type Description
ByteString

The bytes for oldValue.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ConfigChange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAdvices(int index)

public ConfigChange.Builder removeAdvices(int index)

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Parameter
Name Description
index int
Returns
Type Description
ConfigChange.Builder

setAdvices(int index, Advice value)

public ConfigChange.Builder setAdvices(int index, Advice value)

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Parameters
Name Description
index int
value Advice
Returns
Type Description
ConfigChange.Builder

setAdvices(int index, Advice.Builder builderForValue)

public ConfigChange.Builder setAdvices(int index, Advice.Builder builderForValue)

Collection of advice provided for this change, useful for determining the possible impact of this change.

repeated .google.api.Advice advices = 5;

Parameters
Name Description
index int
builderForValue Advice.Builder
Returns
Type Description
ConfigChange.Builder

setChangeType(ChangeType value)

public ConfigChange.Builder setChangeType(ChangeType value)

The type for this change, either ADDED, REMOVED, or MODIFIED.

.google.api.ChangeType change_type = 4;

Parameter
Name Description
value ChangeType

The changeType to set.

Returns
Type Description
ConfigChange.Builder

This builder for chaining.

setChangeTypeValue(int value)

public ConfigChange.Builder setChangeTypeValue(int value)

The type for this change, either ADDED, REMOVED, or MODIFIED.

.google.api.ChangeType change_type = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for changeType to set.

Returns
Type Description
ConfigChange.Builder

This builder for chaining.

setElement(String value)

public ConfigChange.Builder setElement(String value)

Object hierarchy path to the change, with levels separated by a '.' character. For repeated fields, an applicable unique identifier field is used for the index (usually selector, name, or id). For maps, the term 'key' is used. If the field has no unique identifier, the numeric index is used. Examples:

  • visibility.rules[selector=="google.LibraryService.ListBooks"].restriction
  • quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
  • logging.producer_destinations[0]

string element = 1;

Parameter
Name Description
value String

The element to set.

Returns
Type Description
ConfigChange.Builder

This builder for chaining.

setElementBytes(ByteString value)

public ConfigChange.Builder setElementBytes(ByteString value)

Object hierarchy path to the change, with levels separated by a '.' character. For repeated fields, an applicable unique identifier field is used for the index (usually selector, name, or id). For maps, the term 'key' is used. If the field has no unique identifier, the numeric index is used. Examples:

  • visibility.rules[selector=="google.LibraryService.ListBooks"].restriction
  • quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
  • logging.producer_destinations[0]

string element = 1;

Parameter
Name Description
value ByteString

The bytes for element to set.

Returns
Type Description
ConfigChange.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setNewValue(String value)

public ConfigChange.Builder setNewValue(String value)

Value of the changed object in the new Service configuration, in JSON format. This field will not be populated if ChangeType == REMOVED.

string new_value = 3;

Parameter
Name Description
value String

The newValue to set.

Returns
Type Description
ConfigChange.Builder

This builder for chaining.

setNewValueBytes(ByteString value)

public ConfigChange.Builder setNewValueBytes(ByteString value)

Value of the changed object in the new Service configuration, in JSON format. This field will not be populated if ChangeType == REMOVED.

string new_value = 3;

Parameter
Name Description
value ByteString

The bytes for newValue to set.

Returns
Type Description
ConfigChange.Builder

This builder for chaining.

setOldValue(String value)

public ConfigChange.Builder setOldValue(String value)

Value of the changed object in the old Service configuration, in JSON format. This field will not be populated if ChangeType == ADDED.

string old_value = 2;

Parameter
Name Description
value String

The oldValue to set.

Returns
Type Description
ConfigChange.Builder

This builder for chaining.

setOldValueBytes(ByteString value)

public ConfigChange.Builder setOldValueBytes(ByteString value)

Value of the changed object in the old Service configuration, in JSON format. This field will not be populated if ChangeType == ADDED.

string old_value = 2;

Parameter
Name Description
value ByteString

The bytes for oldValue to set.

Returns
Type Description
ConfigChange.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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