Class ConfigChange.Builder (2.37.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
TypeDescription
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
NameDescription
valueAdvice
Returns
TypeDescription
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
NameDescription
builderForValueAdvice.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueAdvice
Returns
TypeDescription
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
NameDescription
indexint
builderForValueAdvice.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.api.Advice>
Returns
TypeDescription
ConfigChange.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConfigChange build()
Returns
TypeDescription
ConfigChange

buildPartial()

public ConfigChange buildPartial()
Returns
TypeDescription
ConfigChange

clear()

public ConfigChange.Builder clear()
Returns
TypeDescription
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
TypeDescription
ConfigChange.Builder

clearChangeType()

public ConfigChange.Builder clearChangeType()

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

.google.api.ChangeType change_type = 4;

Returns
TypeDescription
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
TypeDescription
ConfigChange.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ConfigChange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ConfigChange.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ConfigChange.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ChangeType

The changeType.

getChangeTypeValue()

public int getChangeTypeValue()

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

.google.api.ChangeType change_type = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for changeType.

getDefaultInstanceForType()

public ConfigChange getDefaultInstanceForType()
Returns
TypeDescription
ConfigChange

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for oldValue.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ConfigChange other)

public ConfigChange.Builder mergeFrom(ConfigChange other)
Parameter
NameDescription
otherConfigChange
Returns
TypeDescription
ConfigChange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConfigChange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueAdvice
Returns
TypeDescription
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
NameDescription
indexint
builderForValueAdvice.Builder
Returns
TypeDescription
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
NameDescription
valueChangeType

The changeType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The element to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for element to set.

Returns
TypeDescription
ConfigChange.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ConfigChange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The newValue to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for newValue to set.

Returns
TypeDescription
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
NameDescription
valueString

The oldValue to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for oldValue to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ConfigChange.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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