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

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

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

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

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

        public String getParent()
         Required. Project or location to make a call. Must refer to a caller's
         project.
        
         Format: `projects/{project-number-or-id}` or
         `projects/{project-number-or-id}/locations/{location-id}`.
        
         For global calls, use `projects/{project-number-or-id}/locations/global` or
         `projects/{project-number-or-id}`.
        
         Non-global location is required for AutoML models.
        
         Only models within the same region (have same location-id) can be used,
         otherwise an INVALID_ARGUMENT (400) error is returned.
         
        string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface GetSupportedLanguagesRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. Project or location to make a call. Must refer to a caller's
         project.
        
         Format: `projects/{project-number-or-id}` or
         `projects/{project-number-or-id}/locations/{location-id}`.
        
         For global calls, use `projects/{project-number-or-id}/locations/global` or
         `projects/{project-number-or-id}`.
        
         Non-global location is required for AutoML models.
        
         Only models within the same region (have same location-id) can be used,
         otherwise an INVALID_ARGUMENT (400) error is returned.
         
        string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface GetSupportedLanguagesRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public GetSupportedLanguagesRequest.Builder setParent​(String value)
         Required. Project or location to make a call. Must refer to a caller's
         project.
        
         Format: `projects/{project-number-or-id}` or
         `projects/{project-number-or-id}/locations/{location-id}`.
        
         For global calls, use `projects/{project-number-or-id}/locations/global` or
         `projects/{project-number-or-id}`.
        
         Non-global location is required for AutoML models.
        
         Only models within the same region (have same location-id) can be used,
         otherwise an INVALID_ARGUMENT (400) error is returned.
         
        string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public GetSupportedLanguagesRequest.Builder clearParent()
         Required. Project or location to make a call. Must refer to a caller's
         project.
        
         Format: `projects/{project-number-or-id}` or
         `projects/{project-number-or-id}/locations/{location-id}`.
        
         For global calls, use `projects/{project-number-or-id}/locations/global` or
         `projects/{project-number-or-id}`.
        
         Non-global location is required for AutoML models.
        
         Only models within the same region (have same location-id) can be used,
         otherwise an INVALID_ARGUMENT (400) error is returned.
         
        string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public GetSupportedLanguagesRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. Project or location to make a call. Must refer to a caller's
         project.
        
         Format: `projects/{project-number-or-id}` or
         `projects/{project-number-or-id}/locations/{location-id}`.
        
         For global calls, use `projects/{project-number-or-id}/locations/global` or
         `projects/{project-number-or-id}`.
        
         Non-global location is required for AutoML models.
        
         Only models within the same region (have same location-id) can be used,
         otherwise an INVALID_ARGUMENT (400) error is returned.
         
        string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • getDisplayLanguageCode

        public String getDisplayLanguageCode()
         Optional. The language to use to return localized, human readable names
         of supported languages. If missing, then display names are not returned
         in a response.
         
        string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDisplayLanguageCode in interface GetSupportedLanguagesRequestOrBuilder
        Returns:
        The displayLanguageCode.
      • getDisplayLanguageCodeBytes

        public com.google.protobuf.ByteString getDisplayLanguageCodeBytes()
         Optional. The language to use to return localized, human readable names
         of supported languages. If missing, then display names are not returned
         in a response.
         
        string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDisplayLanguageCodeBytes in interface GetSupportedLanguagesRequestOrBuilder
        Returns:
        The bytes for displayLanguageCode.
      • setDisplayLanguageCode

        public GetSupportedLanguagesRequest.Builder setDisplayLanguageCode​(String value)
         Optional. The language to use to return localized, human readable names
         of supported languages. If missing, then display names are not returned
         in a response.
         
        string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The displayLanguageCode to set.
        Returns:
        This builder for chaining.
      • clearDisplayLanguageCode

        public GetSupportedLanguagesRequest.Builder clearDisplayLanguageCode()
         Optional. The language to use to return localized, human readable names
         of supported languages. If missing, then display names are not returned
         in a response.
         
        string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setDisplayLanguageCodeBytes

        public GetSupportedLanguagesRequest.Builder setDisplayLanguageCodeBytes​(com.google.protobuf.ByteString value)
         Optional. The language to use to return localized, human readable names
         of supported languages. If missing, then display names are not returned
         in a response.
         
        string display_language_code = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for displayLanguageCode to set.
        Returns:
        This builder for chaining.
      • getModel

        public String getModel()
         Optional. Get supported languages of this model.
        
         The format depends on model type:
        
         - AutoML Translation models:
           `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}`
        
         - General (built-in) models:
           `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,
        
        
         Returns languages supported by the specified model.
         If missing, we get supported languages of Google general NMT model.
         
        string model = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getModel in interface GetSupportedLanguagesRequestOrBuilder
        Returns:
        The model.
      • getModelBytes

        public com.google.protobuf.ByteString getModelBytes()
         Optional. Get supported languages of this model.
        
         The format depends on model type:
        
         - AutoML Translation models:
           `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}`
        
         - General (built-in) models:
           `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,
        
        
         Returns languages supported by the specified model.
         If missing, we get supported languages of Google general NMT model.
         
        string model = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getModelBytes in interface GetSupportedLanguagesRequestOrBuilder
        Returns:
        The bytes for model.
      • setModel

        public GetSupportedLanguagesRequest.Builder setModel​(String value)
         Optional. Get supported languages of this model.
        
         The format depends on model type:
        
         - AutoML Translation models:
           `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}`
        
         - General (built-in) models:
           `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,
        
        
         Returns languages supported by the specified model.
         If missing, we get supported languages of Google general NMT model.
         
        string model = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The model to set.
        Returns:
        This builder for chaining.
      • clearModel

        public GetSupportedLanguagesRequest.Builder clearModel()
         Optional. Get supported languages of this model.
        
         The format depends on model type:
        
         - AutoML Translation models:
           `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}`
        
         - General (built-in) models:
           `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,
        
        
         Returns languages supported by the specified model.
         If missing, we get supported languages of Google general NMT model.
         
        string model = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setModelBytes

        public GetSupportedLanguagesRequest.Builder setModelBytes​(com.google.protobuf.ByteString value)
         Optional. Get supported languages of this model.
        
         The format depends on model type:
        
         - AutoML Translation models:
           `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}`
        
         - General (built-in) models:
           `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,
        
        
         Returns languages supported by the specified model.
         If missing, we get supported languages of Google general NMT model.
         
        string model = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for model to set.
        Returns:
        This builder for chaining.