public final class ConfigChange extends GeneratedMessageV3 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 Fields
ADVICES_FIELD_NUMBER
public static final int ADVICES_FIELD_NUMBER
Field Value
CHANGE_TYPE_FIELD_NUMBER
public static final int CHANGE_TYPE_FIELD_NUMBER
Field Value
ELEMENT_FIELD_NUMBER
public static final int ELEMENT_FIELD_NUMBER
Field Value
NEW_VALUE_FIELD_NUMBER
public static final int NEW_VALUE_FIELD_NUMBER
Field Value
OLD_VALUE_FIELD_NUMBER
public static final int OLD_VALUE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ConfigChange getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ConfigChange.Builder newBuilder()
Returns
newBuilder(ConfigChange prototype)
public static ConfigChange.Builder newBuilder(ConfigChange prototype)
Parameter
Returns
public static ConfigChange parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ConfigChange parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ConfigChange parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ConfigChange parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ConfigChange parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ConfigChange parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ConfigChange parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ConfigChange parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ConfigChange parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ConfigChange parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ConfigChange parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ConfigChange parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ConfigChange> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
Returns
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
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
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
Returns
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
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
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
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
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
getParserForType()
public Parser<ConfigChange> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ConfigChange.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ConfigChange.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ConfigChange.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions