Class ChangeLogEntry.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ChangeLogEntry.Builder>
com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.Builder
All Implemented Interfaces:
ChangeLogEntryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ChangeLogEntry

public static final class ChangeLogEntry.Builder extends com.google.protobuf.GeneratedMessage.Builder<ChangeLogEntry.Builder> implements ChangeLogEntryOrBuilder
 A log entry of a change made to an order.
 
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ChangeLogEntry.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ChangeLogEntry.Builder>
    • internalGetFieldAccessorTable

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

      public ChangeLogEntry.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.GeneratedMessage.Builder<ChangeLogEntry.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.GeneratedMessage.Builder<ChangeLogEntry.Builder>
    • getDefaultInstanceForType

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

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

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

      public ChangeLogEntry.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<ChangeLogEntry.Builder>
    • mergeFrom

      public ChangeLogEntry.Builder mergeFrom(ChangeLogEntry other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ChangeLogEntry.Builder>
    • mergeFrom

      public ChangeLogEntry.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<ChangeLogEntry.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. Name of this change log entry.
       Format:
       `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface ChangeLogEntryOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Name of this change log entry.
       Format:
       `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface ChangeLogEntryOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ChangeLogEntry.Builder setName(String value)
       Identifier. Name of this change log entry.
       Format:
       `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ChangeLogEntry.Builder clearName()
       Identifier. Name of this change log entry.
       Format:
       `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public ChangeLogEntry.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Name of this change log entry.
       Format:
       `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Time when this change log entry was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface ChangeLogEntryOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Time when this change log entry was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface ChangeLogEntryOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public ChangeLogEntry.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when this change log entry was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public ChangeLogEntry.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Time when this change log entry was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public ChangeLogEntry.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time when this change log entry was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public ChangeLogEntry.Builder clearCreateTime()
       Output only. Time when this change log entry was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Time when this change log entry was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Time when this change log entry was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface ChangeLogEntryOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: ChangeLogEntryOrBuilder
       Optional. Labels associated with this change log entry as key value pairs.
       For more information about labels, see [Create and manage
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
       
      map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface ChangeLogEntryOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Labels associated with this change log entry as key value pairs.
       For more information about labels, see [Create and manage
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
       
      map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface ChangeLogEntryOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface ChangeLogEntryOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Labels associated with this change log entry as key value pairs.
       For more information about labels, see [Create and manage
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
       
      map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface ChangeLogEntryOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Labels associated with this change log entry as key value pairs.
       For more information about labels, see [Create and manage
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
       
      map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface ChangeLogEntryOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Labels associated with this change log entry as key value pairs.
       For more information about labels, see [Create and manage
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
       
      map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface ChangeLogEntryOrBuilder
    • clearLabels

      public ChangeLogEntry.Builder clearLabels()
    • removeLabels

      public ChangeLogEntry.Builder removeLabels(String key)
       Optional. Labels associated with this change log entry as key value pairs.
       For more information about labels, see [Create and manage
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
       
      map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public ChangeLogEntry.Builder putLabels(String key, String value)
       Optional. Labels associated with this change log entry as key value pairs.
       For more information about labels, see [Create and manage
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
       
      map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public ChangeLogEntry.Builder putAllLabels(Map<String,String> values)
       Optional. Labels associated with this change log entry as key value pairs.
       For more information about labels, see [Create and manage
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
       
      map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getLog

      public String getLog()
       Output only. Content of this log entry.
       
      string log = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLog in interface ChangeLogEntryOrBuilder
      Returns:
      The log.
    • getLogBytes

      public com.google.protobuf.ByteString getLogBytes()
       Output only. Content of this log entry.
       
      string log = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLogBytes in interface ChangeLogEntryOrBuilder
      Returns:
      The bytes for log.
    • setLog

      public ChangeLogEntry.Builder setLog(String value)
       Output only. Content of this log entry.
       
      string log = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The log to set.
      Returns:
      This builder for chaining.
    • clearLog

      public ChangeLogEntry.Builder clearLog()
       Output only. Content of this log entry.
       
      string log = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setLogBytes

      public ChangeLogEntry.Builder setLogBytes(com.google.protobuf.ByteString value)
       Output only. Content of this log entry.
       
      string log = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for log to set.
      Returns:
      This builder for chaining.