Class CreateServingConfigRequest.Builder

    • Method Detail

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

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

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

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

        public CreateServingConfigRequest.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<CreateServingConfigRequest.Builder>
        Throws:
        IOException
      • getParent

        public String getParent()
         Required. Full resource name of parent. Format:
         `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface CreateServingConfigRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. Full resource name of parent. Format:
         `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface CreateServingConfigRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreateServingConfigRequest.Builder setParent​(String value)
         Required. Full resource name of parent. Format:
         `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public CreateServingConfigRequest.Builder clearParent()
         Required. Full resource name of parent. Format:
         `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateServingConfigRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. Full resource name of parent. Format:
         `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • hasServingConfig

        public boolean hasServingConfig()
         Required. The ServingConfig to create.
         
        .google.cloud.retail.v2beta.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasServingConfig in interface CreateServingConfigRequestOrBuilder
        Returns:
        Whether the servingConfig field is set.
      • setServingConfig

        public CreateServingConfigRequest.Builder setServingConfig​(ServingConfig value)
         Required. The ServingConfig to create.
         
        .google.cloud.retail.v2beta.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeServingConfig

        public CreateServingConfigRequest.Builder mergeServingConfig​(ServingConfig value)
         Required. The ServingConfig to create.
         
        .google.cloud.retail.v2beta.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearServingConfig

        public CreateServingConfigRequest.Builder clearServingConfig()
         Required. The ServingConfig to create.
         
        .google.cloud.retail.v2beta.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED];
      • getServingConfigBuilder

        public ServingConfig.Builder getServingConfigBuilder()
         Required. The ServingConfig to create.
         
        .google.cloud.retail.v2beta.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED];
      • getServingConfigId

        public String getServingConfigId()
         Required. The ID to use for the ServingConfig, which will become the final
         component of the ServingConfig's resource name.
        
         This value should be 4-63 characters, and valid characters
         are /[a-z][0-9]-_/.
         
        string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getServingConfigId in interface CreateServingConfigRequestOrBuilder
        Returns:
        The servingConfigId.
      • getServingConfigIdBytes

        public com.google.protobuf.ByteString getServingConfigIdBytes()
         Required. The ID to use for the ServingConfig, which will become the final
         component of the ServingConfig's resource name.
        
         This value should be 4-63 characters, and valid characters
         are /[a-z][0-9]-_/.
         
        string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getServingConfigIdBytes in interface CreateServingConfigRequestOrBuilder
        Returns:
        The bytes for servingConfigId.
      • setServingConfigId

        public CreateServingConfigRequest.Builder setServingConfigId​(String value)
         Required. The ID to use for the ServingConfig, which will become the final
         component of the ServingConfig's resource name.
        
         This value should be 4-63 characters, and valid characters
         are /[a-z][0-9]-_/.
         
        string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The servingConfigId to set.
        Returns:
        This builder for chaining.
      • clearServingConfigId

        public CreateServingConfigRequest.Builder clearServingConfigId()
         Required. The ID to use for the ServingConfig, which will become the final
         component of the ServingConfig's resource name.
        
         This value should be 4-63 characters, and valid characters
         are /[a-z][0-9]-_/.
         
        string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setServingConfigIdBytes

        public CreateServingConfigRequest.Builder setServingConfigIdBytes​(com.google.protobuf.ByteString value)
         Required. The ID to use for the ServingConfig, which will become the final
         component of the ServingConfig's resource name.
        
         This value should be 4-63 characters, and valid characters
         are /[a-z][0-9]-_/.
         
        string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for servingConfigId to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CreateServingConfigRequest.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<CreateServingConfigRequest.Builder>
      • mergeUnknownFields

        public final CreateServingConfigRequest.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<CreateServingConfigRequest.Builder>