Class MarkRecommendationFailedRequest.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<MarkRecommendationFailedRequest.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<MarkRecommendationFailedRequest.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

        public MarkRecommendationFailedRequest 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MarkRecommendationFailedRequest.Builder>
      • 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

        public MarkRecommendationFailedRequest.Builder setName​(String value)
         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

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

        public MarkRecommendationFailedRequest.Builder setEtag​(String value)
         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

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