Package com.google.api
Class ConfigChange.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
com.google.api.ConfigChange.Builder
- All Implemented Interfaces:
ConfigChangeOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ConfigChange
public static final class ConfigChange.Builder
extends com.google.protobuf.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
-
Method Summary
Modifier and TypeMethodDescriptionaddAdvices
(int index, Advice value) Collection of advice provided for this change, useful for determining the possible impact of this change.addAdvices
(int index, Advice.Builder builderForValue) Collection of advice provided for this change, useful for determining the possible impact of this change.addAdvices
(Advice value) Collection of advice provided for this change, useful for determining the possible impact of this change.addAdvices
(Advice.Builder builderForValue) Collection of advice provided for this change, useful for determining the possible impact of this change.Collection of advice provided for this change, useful for determining the possible impact of this change.addAdvicesBuilder
(int index) Collection of advice provided for this change, useful for determining the possible impact of this change.addAllAdvices
(Iterable<? extends Advice> values) Collection of advice provided for this change, useful for determining the possible impact of this change.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Collection of advice provided for this change, useful for determining the possible impact of this change.The type for this change, either ADDED, REMOVED, or MODIFIED.Object hierarchy path to the change, with levels separated by a '.' character.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Value of the changed object in the new Service configuration, in JSON format.Value of the changed object in the old Service configuration, in JSON format.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()
getAdvices
(int index) Collection of advice provided for this change, useful for determining the possible impact of this change.getAdvicesBuilder
(int index) Collection of advice provided for this change, useful for determining the possible impact of this change.Collection of advice provided for this change, useful for determining the possible impact of this change.int
Collection of advice provided for this change, useful for determining the possible impact of this change.Collection of advice provided for this change, useful for determining the possible impact of this change.getAdvicesOrBuilder
(int index) Collection of advice provided for this change, useful for determining the possible impact of this change.List<? extends AdviceOrBuilder>
Collection of advice provided for this change, useful for determining the possible impact of this change.The type for this change, either ADDED, REMOVED, or MODIFIED.int
The type for this change, either ADDED, REMOVED, or MODIFIED.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Object hierarchy path to the change, with levels separated by a '.' character.com.google.protobuf.ByteString
Object hierarchy path to the change, with levels separated by a '.' character.Value of the changed object in the new Service configuration, in JSON format.com.google.protobuf.ByteString
Value of the changed object in the new Service configuration, in JSON format.Value of the changed object in the old Service configuration, in JSON format.com.google.protobuf.ByteString
Value of the changed object in the old Service configuration, in JSON format.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(ConfigChange other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) final ConfigChange.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) removeAdvices
(int index) Collection of advice provided for this change, useful for determining the possible impact of this change.setAdvices
(int index, Advice value) Collection of advice provided for this change, useful for determining the possible impact of this change.setAdvices
(int index, Advice.Builder builderForValue) Collection of advice provided for this change, useful for determining the possible impact of this change.setChangeType
(ChangeType value) The type for this change, either ADDED, REMOVED, or MODIFIED.setChangeTypeValue
(int value) The type for this change, either ADDED, REMOVED, or MODIFIED.setElement
(String value) Object hierarchy path to the change, with levels separated by a '.' character.setElementBytes
(com.google.protobuf.ByteString value) Object hierarchy path to the change, with levels separated by a '.' character.setNewValue
(String value) Value of the changed object in the new Service configuration, in JSON format.setNewValueBytes
(com.google.protobuf.ByteString value) Value of the changed object in the new Service configuration, in JSON format.setOldValue
(String value) Value of the changed object in the old Service configuration, in JSON format.setOldValueBytes
(com.google.protobuf.ByteString value) Value of the changed object in the old Service configuration, in JSON format.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final ConfigChange.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
setField
public ConfigChange.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
setRepeatedField
public ConfigChange.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
addRepeatedField
public ConfigChange.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ConfigChange.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
mergeFrom
public ConfigChange.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ConfigChange.Builder>
- Throws:
IOException
-
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;
- Specified by:
getElement
in interfaceConfigChangeOrBuilder
- Returns:
- The element.
-
getElementBytes
public com.google.protobuf.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;
- Specified by:
getElementBytes
in interfaceConfigChangeOrBuilder
- Returns:
- The bytes for element.
-
setElement
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;
- Parameters:
value
- The element to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setElementBytes
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;
- Parameters:
value
- The bytes for element to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getOldValue
in interfaceConfigChangeOrBuilder
- Returns:
- The oldValue.
-
getOldValueBytes
public com.google.protobuf.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;
- Specified by:
getOldValueBytes
in interfaceConfigChangeOrBuilder
- Returns:
- The bytes for oldValue.
-
setOldValue
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;
- Parameters:
value
- The oldValue to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setOldValueBytes
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;
- Parameters:
value
- The bytes for oldValue to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getNewValue
in interfaceConfigChangeOrBuilder
- Returns:
- The newValue.
-
getNewValueBytes
public com.google.protobuf.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;
- Specified by:
getNewValueBytes
in interfaceConfigChangeOrBuilder
- Returns:
- The bytes for newValue.
-
setNewValue
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;
- Parameters:
value
- The newValue to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNewValueBytes
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;
- Parameters:
value
- The bytes for newValue to set.- Returns:
- This builder for chaining.
-
getChangeTypeValue
public int getChangeTypeValue()The type for this change, either ADDED, REMOVED, or MODIFIED.
.google.api.ChangeType change_type = 4;
- Specified by:
getChangeTypeValue
in interfaceConfigChangeOrBuilder
- Returns:
- The enum numeric value on the wire for changeType.
-
setChangeTypeValue
The type for this change, either ADDED, REMOVED, or MODIFIED.
.google.api.ChangeType change_type = 4;
- Parameters:
value
- The enum numeric value on the wire for changeType to set.- Returns:
- This builder for chaining.
-
getChangeType
The type for this change, either ADDED, REMOVED, or MODIFIED.
.google.api.ChangeType change_type = 4;
- Specified by:
getChangeType
in interfaceConfigChangeOrBuilder
- Returns:
- The changeType.
-
setChangeType
The type for this change, either ADDED, REMOVED, or MODIFIED.
.google.api.ChangeType change_type = 4;
- Parameters:
value
- The changeType to set.- Returns:
- This builder for chaining.
-
clearChangeType
The type for this change, either ADDED, REMOVED, or MODIFIED.
.google.api.ChangeType change_type = 4;
- Returns:
- This builder for chaining.
-
getAdvicesList
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
- Specified by:
getAdvicesList
in interfaceConfigChangeOrBuilder
-
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;
- Specified by:
getAdvicesCount
in interfaceConfigChangeOrBuilder
-
getAdvices
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
- Specified by:
getAdvices
in interfaceConfigChangeOrBuilder
-
setAdvices
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
setAdvices
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
addAdvices
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
addAdvices
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
addAdvices
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
addAdvices
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
addAllAdvices
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
clearAdvices
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
removeAdvices
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
getAdvicesBuilder
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
getAdvicesOrBuilder
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
- Specified by:
getAdvicesOrBuilder
in interfaceConfigChangeOrBuilder
-
getAdvicesOrBuilderList
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
- Specified by:
getAdvicesOrBuilderList
in interfaceConfigChangeOrBuilder
-
addAdvicesBuilder
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
addAdvicesBuilder
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
getAdvicesBuilderList
Collection of advice provided for this change, useful for determining the possible impact of this change.
repeated .google.api.Advice advices = 5;
-
setUnknownFields
public final ConfigChange.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-
mergeUnknownFields
public final ConfigChange.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
-