Class MarkRecommendationFailedRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MarkRecommendationFailedRequest.Builder>
com.google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest.Builder
All Implemented Interfaces:
MarkRecommendationFailedRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MarkRecommendationFailedRequest

public static final class MarkRecommendationFailedRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<MarkRecommendationFailedRequest.Builder> implements MarkRecommendationFailedRequestOrBuilder
 Request for the `MarkRecommendationFailed` Method.
 
Protobuf type google.cloud.recommender.v1beta1.MarkRecommendationFailedRequest
  • 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<MarkRecommendationFailedRequest.Builder>
    • internalGetMutableMapFieldReflection

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MarkRecommendationFailedRequest.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<MarkRecommendationFailedRequest.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<MarkRecommendationFailedRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

    • isInitialized

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

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

      public String getName()
       Required. Name of the recommendation.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface MarkRecommendationFailedRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. Name of the recommendation.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface MarkRecommendationFailedRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

       Required. Name of the recommendation.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Required. Name of the recommendation.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public MarkRecommendationFailedRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. Name of the recommendation.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getStateMetadataCount

      public int getStateMetadataCount()
      Description copied from interface: MarkRecommendationFailedRequestOrBuilder
       State properties to include with this state. Overwrites any existing
       `state_metadata`.
       Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`.
       Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.
       
      map<string, string> state_metadata = 2;
      Specified by:
      getStateMetadataCount in interface MarkRecommendationFailedRequestOrBuilder
    • containsStateMetadata

      public boolean containsStateMetadata(String key)
       State properties to include with this state. Overwrites any existing
       `state_metadata`.
       Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`.
       Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.
       
      map<string, string> state_metadata = 2;
      Specified by:
      containsStateMetadata in interface MarkRecommendationFailedRequestOrBuilder
    • getStateMetadata

      @Deprecated public Map<String,String> getStateMetadata()
      Deprecated.
      Specified by:
      getStateMetadata in interface MarkRecommendationFailedRequestOrBuilder
    • getStateMetadataMap

      public Map<String,String> getStateMetadataMap()
       State properties to include with this state. Overwrites any existing
       `state_metadata`.
       Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`.
       Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.
       
      map<string, string> state_metadata = 2;
      Specified by:
      getStateMetadataMap in interface MarkRecommendationFailedRequestOrBuilder
    • getStateMetadataOrDefault

      public String getStateMetadataOrDefault(String key, String defaultValue)
       State properties to include with this state. Overwrites any existing
       `state_metadata`.
       Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`.
       Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.
       
      map<string, string> state_metadata = 2;
      Specified by:
      getStateMetadataOrDefault in interface MarkRecommendationFailedRequestOrBuilder
    • getStateMetadataOrThrow

      public String getStateMetadataOrThrow(String key)
       State properties to include with this state. Overwrites any existing
       `state_metadata`.
       Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`.
       Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.
       
      map<string, string> state_metadata = 2;
      Specified by:
      getStateMetadataOrThrow in interface MarkRecommendationFailedRequestOrBuilder
    • clearStateMetadata

      public MarkRecommendationFailedRequest.Builder clearStateMetadata()
    • removeStateMetadata

      public MarkRecommendationFailedRequest.Builder removeStateMetadata(String key)
       State properties to include with this state. Overwrites any existing
       `state_metadata`.
       Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`.
       Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.
       
      map<string, string> state_metadata = 2;
    • getMutableStateMetadata

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

      public MarkRecommendationFailedRequest.Builder putStateMetadata(String key, String value)
       State properties to include with this state. Overwrites any existing
       `state_metadata`.
       Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`.
       Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.
       
      map<string, string> state_metadata = 2;
    • putAllStateMetadata

      public MarkRecommendationFailedRequest.Builder putAllStateMetadata(Map<String,String> values)
       State properties to include with this state. Overwrites any existing
       `state_metadata`.
       Keys must match the regex `/^[a-z0-9][a-z0-9_.-]{0,62}$/`.
       Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.
       
      map<string, string> state_metadata = 2;
    • getEtag

      public String getEtag()
       Required. Fingerprint of the Recommendation. Provides optimistic locking.
       
      string etag = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEtag in interface MarkRecommendationFailedRequestOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Required. Fingerprint of the Recommendation. Provides optimistic locking.
       
      string etag = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEtagBytes in interface MarkRecommendationFailedRequestOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

       Required. Fingerprint of the Recommendation. Provides optimistic locking.
       
      string etag = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

       Required. Fingerprint of the Recommendation. Provides optimistic locking.
       
      string etag = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setEtagBytes

      public MarkRecommendationFailedRequest.Builder setEtagBytes(com.google.protobuf.ByteString value)
       Required. Fingerprint of the Recommendation. Provides optimistic locking.
       
      string etag = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.