Class ConfigChange.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
    • clear

      public ConfigChange.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
    • getDefaultInstanceForType

      public ConfigChange getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ConfigChange build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ConfigChange buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public ConfigChange.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
    • setField

      public ConfigChange.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
    • clearField

      public ConfigChange.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
    • clearOneof

      public ConfigChange.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
    • addRepeatedField

      public ConfigChange.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
    • mergeFrom

      public ConfigChange.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConfigChange.Builder>
    • mergeFrom

      public ConfigChange.Builder mergeFrom(ConfigChange other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConfigChange.Builder>
      Throws:
      IOException
    • 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;
      Specified by:
      getElement in interface ConfigChangeOrBuilder
      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 interface ConfigChangeOrBuilder
      Returns:
      The bytes for element.
    • setElement

      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;
      Parameters:
      value - The element to set.
      Returns:
      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:
      This builder for chaining.
    • setElementBytes

      public ConfigChange.Builder setElementBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for element to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getOldValue in interface ConfigChangeOrBuilder
      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 interface ConfigChangeOrBuilder
      Returns:
      The bytes for oldValue.
    • setOldValue

      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;
      Parameters:
      value - The oldValue to set.
      Returns:
      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:
      This builder for chaining.
    • setOldValueBytes

      public ConfigChange.Builder setOldValueBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for oldValue to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getNewValue in interface ConfigChangeOrBuilder
      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 interface ConfigChangeOrBuilder
      Returns:
      The bytes for newValue.
    • setNewValue

      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;
      Parameters:
      value - The newValue to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setNewValueBytes

      public ConfigChange.Builder setNewValueBytes(com.google.protobuf.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;
      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 interface ConfigChangeOrBuilder
      Returns:
      The enum numeric value on the wire for changeType.
    • setChangeTypeValue

      public ConfigChange.Builder setChangeTypeValue(int value)
       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

      public ChangeType getChangeType()
       The type for this change, either ADDED, REMOVED, or MODIFIED.
       
      .google.api.ChangeType change_type = 4;
      Specified by:
      getChangeType in interface ConfigChangeOrBuilder
      Returns:
      The changeType.
    • setChangeType

      public ConfigChange.Builder setChangeType(ChangeType value)
       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

      public ConfigChange.Builder clearChangeType()
       The type for this change, either ADDED, REMOVED, or MODIFIED.
       
      .google.api.ChangeType change_type = 4;
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getAdvicesList in interface ConfigChangeOrBuilder
    • 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 interface ConfigChangeOrBuilder
    • getAdvices

      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;
      Specified by:
      getAdvices in interface ConfigChangeOrBuilder
    • setAdvices

      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;
    • setAdvices

      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;
    • addAdvices

      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;
    • addAdvices

      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;
    • addAdvices

      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;
    • addAdvices

      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;
    • addAllAdvices

      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;
    • 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;
    • removeAdvices

      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;
    • getAdvicesBuilder

      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;
    • getAdvicesOrBuilder

      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;
      Specified by:
      getAdvicesOrBuilder in interface ConfigChangeOrBuilder
    • 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;
      Specified by:
      getAdvicesOrBuilderList in interface ConfigChangeOrBuilder
    • 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;
    • addAdvicesBuilder

      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;
    • 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;
    • setUnknownFields

      public final ConfigChange.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>
    • mergeUnknownFields

      public final ConfigChange.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConfigChange.Builder>