Class ClusterInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ClusterInfo.Builder>
com.google.cloud.configdelivery.v1beta.ClusterInfo.Builder
All Implemented Interfaces:
ClusterInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ClusterInfo

public static final class ClusterInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<ClusterInfo.Builder> implements ClusterInfoOrBuilder
 ClusterInfo represents status of a resource bundle rollout for a cluster.
 
Protobuf type google.cloud.configdelivery.v1beta.ClusterInfo
  • Method Details

    • getDescriptor

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

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

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

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

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

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

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

      public ClusterInfo.Builder mergeFrom(ClusterInfo other)
    • isInitialized

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

      public ClusterInfo.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<ClusterInfo.Builder>
      Throws:
      IOException
    • getMembership

      public String getMembership()
       Output only. gkehub membership of target cluster
       
      string membership = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getMembership in interface ClusterInfoOrBuilder
      Returns:
      The membership.
    • getMembershipBytes

      public com.google.protobuf.ByteString getMembershipBytes()
       Output only. gkehub membership of target cluster
       
      string membership = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getMembershipBytes in interface ClusterInfoOrBuilder
      Returns:
      The bytes for membership.
    • setMembership

      public ClusterInfo.Builder setMembership(String value)
       Output only. gkehub membership of target cluster
       
      string membership = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The membership to set.
      Returns:
      This builder for chaining.
    • clearMembership

      public ClusterInfo.Builder clearMembership()
       Output only. gkehub membership of target cluster
       
      string membership = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setMembershipBytes

      public ClusterInfo.Builder setMembershipBytes(com.google.protobuf.ByteString value)
       Output only. gkehub membership of target cluster
       
      string membership = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for membership to set.
      Returns:
      This builder for chaining.
    • hasDesired

      public boolean hasDesired()
       Output only. Desired state for the resource bundle.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo desired = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDesired in interface ClusterInfoOrBuilder
      Returns:
      Whether the desired field is set.
    • getDesired

      public ResourceBundleDeploymentInfo getDesired()
       Output only. Desired state for the resource bundle.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo desired = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDesired in interface ClusterInfoOrBuilder
      Returns:
      The desired.
    • setDesired

       Output only. Desired state for the resource bundle.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo desired = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setDesired

      public ClusterInfo.Builder setDesired(ResourceBundleDeploymentInfo.Builder builderForValue)
       Output only. Desired state for the resource bundle.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo desired = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeDesired

       Output only. Desired state for the resource bundle.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo desired = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearDesired

      public ClusterInfo.Builder clearDesired()
       Output only. Desired state for the resource bundle.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo desired = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDesiredBuilder

      public ResourceBundleDeploymentInfo.Builder getDesiredBuilder()
       Output only. Desired state for the resource bundle.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo desired = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDesiredOrBuilder

      public ResourceBundleDeploymentInfoOrBuilder getDesiredOrBuilder()
       Output only. Desired state for the resource bundle.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo desired = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDesiredOrBuilder in interface ClusterInfoOrBuilder
    • hasInitial

      public boolean hasInitial()
       Output only. Initial state of the resource bundle prior to the deployment.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo initial = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasInitial in interface ClusterInfoOrBuilder
      Returns:
      Whether the initial field is set.
    • getInitial

      public ResourceBundleDeploymentInfo getInitial()
       Output only. Initial state of the resource bundle prior to the deployment.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo initial = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInitial in interface ClusterInfoOrBuilder
      Returns:
      The initial.
    • setInitial

       Output only. Initial state of the resource bundle prior to the deployment.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo initial = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setInitial

      public ClusterInfo.Builder setInitial(ResourceBundleDeploymentInfo.Builder builderForValue)
       Output only. Initial state of the resource bundle prior to the deployment.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo initial = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeInitial

       Output only. Initial state of the resource bundle prior to the deployment.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo initial = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearInitial

      public ClusterInfo.Builder clearInitial()
       Output only. Initial state of the resource bundle prior to the deployment.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo initial = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getInitialBuilder

      public ResourceBundleDeploymentInfo.Builder getInitialBuilder()
       Output only. Initial state of the resource bundle prior to the deployment.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo initial = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getInitialOrBuilder

      public ResourceBundleDeploymentInfoOrBuilder getInitialOrBuilder()
       Output only. Initial state of the resource bundle prior to the deployment.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo initial = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInitialOrBuilder in interface ClusterInfoOrBuilder
    • hasCurrent

      public boolean hasCurrent()
       Output only. Current state of the resource bundle.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo current = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCurrent in interface ClusterInfoOrBuilder
      Returns:
      Whether the current field is set.
    • getCurrent

      public ResourceBundleDeploymentInfo getCurrent()
       Output only. Current state of the resource bundle.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo current = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCurrent in interface ClusterInfoOrBuilder
      Returns:
      The current.
    • setCurrent

       Output only. Current state of the resource bundle.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo current = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCurrent

      public ClusterInfo.Builder setCurrent(ResourceBundleDeploymentInfo.Builder builderForValue)
       Output only. Current state of the resource bundle.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo current = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCurrent

       Output only. Current state of the resource bundle.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo current = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCurrent

      public ClusterInfo.Builder clearCurrent()
       Output only. Current state of the resource bundle.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo current = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCurrentBuilder

      public ResourceBundleDeploymentInfo.Builder getCurrentBuilder()
       Output only. Current state of the resource bundle.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo current = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCurrentOrBuilder

      public ResourceBundleDeploymentInfoOrBuilder getCurrentOrBuilder()
       Output only. Current state of the resource bundle.
       
      .google.cloud.configdelivery.v1beta.ResourceBundleDeploymentInfo current = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCurrentOrBuilder in interface ClusterInfoOrBuilder
    • getStateValue

      public int getStateValue()
       Output only. State of the rollout for the cluster.
       
      .google.cloud.configdelivery.v1beta.ClusterInfo.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface ClusterInfoOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public ClusterInfo.Builder setStateValue(int value)
       Output only. State of the rollout for the cluster.
       
      .google.cloud.configdelivery.v1beta.ClusterInfo.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public ClusterInfo.State getState()
       Output only. State of the rollout for the cluster.
       
      .google.cloud.configdelivery.v1beta.ClusterInfo.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface ClusterInfoOrBuilder
      Returns:
      The state.
    • setState

      public ClusterInfo.Builder setState(ClusterInfo.State value)
       Output only. State of the rollout for the cluster.
       
      .google.cloud.configdelivery.v1beta.ClusterInfo.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public ClusterInfo.Builder clearState()
       Output only. State of the rollout for the cluster.
       
      .google.cloud.configdelivery.v1beta.ClusterInfo.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getMessagesList

      public com.google.protobuf.ProtocolStringList getMessagesList()
       Output only. Unordered list. Messages convey additional information related
       to the deployment.
       
      repeated string messages = 6 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMessagesList in interface ClusterInfoOrBuilder
      Returns:
      A list containing the messages.
    • getMessagesCount

      public int getMessagesCount()
       Output only. Unordered list. Messages convey additional information related
       to the deployment.
       
      repeated string messages = 6 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMessagesCount in interface ClusterInfoOrBuilder
      Returns:
      The count of messages.
    • getMessages

      public String getMessages(int index)
       Output only. Unordered list. Messages convey additional information related
       to the deployment.
       
      repeated string messages = 6 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMessages in interface ClusterInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The messages at the given index.
    • getMessagesBytes

      public com.google.protobuf.ByteString getMessagesBytes(int index)
       Output only. Unordered list. Messages convey additional information related
       to the deployment.
       
      repeated string messages = 6 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMessagesBytes in interface ClusterInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the messages at the given index.
    • setMessages

      public ClusterInfo.Builder setMessages(int index, String value)
       Output only. Unordered list. Messages convey additional information related
       to the deployment.
       
      repeated string messages = 6 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The messages to set.
      Returns:
      This builder for chaining.
    • addMessages

      public ClusterInfo.Builder addMessages(String value)
       Output only. Unordered list. Messages convey additional information related
       to the deployment.
       
      repeated string messages = 6 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The messages to add.
      Returns:
      This builder for chaining.
    • addAllMessages

      public ClusterInfo.Builder addAllMessages(Iterable<String> values)
       Output only. Unordered list. Messages convey additional information related
       to the deployment.
       
      repeated string messages = 6 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The messages to add.
      Returns:
      This builder for chaining.
    • clearMessages

      public ClusterInfo.Builder clearMessages()
       Output only. Unordered list. Messages convey additional information related
       to the deployment.
       
      repeated string messages = 6 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addMessagesBytes

      public ClusterInfo.Builder addMessagesBytes(com.google.protobuf.ByteString value)
       Output only. Unordered list. Messages convey additional information related
       to the deployment.
       
      repeated string messages = 6 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the messages to add.
      Returns:
      This builder for chaining.
    • hasStartTime

      public boolean hasStartTime()
       Output only. Timestamp when reconciliation starts.
       
      .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasStartTime in interface ClusterInfoOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Timestamp getStartTime()
       Output only. Timestamp when reconciliation starts.
       
      .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStartTime in interface ClusterInfoOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public ClusterInfo.Builder setStartTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when reconciliation starts.
       
      .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setStartTime

      public ClusterInfo.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Timestamp when reconciliation starts.
       
      .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeStartTime

      public ClusterInfo.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when reconciliation starts.
       
      .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearStartTime

      public ClusterInfo.Builder clearStartTime()
       Output only. Timestamp when reconciliation starts.
       
      .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
       Output only. Timestamp when reconciliation starts.
       
      .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       Output only. Timestamp when reconciliation starts.
       
      .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStartTimeOrBuilder in interface ClusterInfoOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       Output only. Timestamp when reconciliation ends.
       
      .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasEndTime in interface ClusterInfoOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public com.google.protobuf.Timestamp getEndTime()
       Output only. Timestamp when reconciliation ends.
       
      .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndTime in interface ClusterInfoOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public ClusterInfo.Builder setEndTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when reconciliation ends.
       
      .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setEndTime

      public ClusterInfo.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Timestamp when reconciliation ends.
       
      .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeEndTime

      public ClusterInfo.Builder mergeEndTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when reconciliation ends.
       
      .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearEndTime

      public ClusterInfo.Builder clearEndTime()
       Output only. Timestamp when reconciliation ends.
       
      .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getEndTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
       Output only. Timestamp when reconciliation ends.
       
      .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getEndTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
       Output only. Timestamp when reconciliation ends.
       
      .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndTimeOrBuilder in interface ClusterInfoOrBuilder