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

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

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

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

        public TranslateTextGlossaryConfig.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<TranslateTextGlossaryConfig.Builder>
        Throws:
        IOException
      • getGlossary

        public String getGlossary()
         Required. Specifies the glossary used for this translation. Use
         this format: projects/*/locations/*/glossaries/*
         
        string glossary = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getGlossary in interface TranslateTextGlossaryConfigOrBuilder
        Returns:
        The glossary.
      • getGlossaryBytes

        public com.google.protobuf.ByteString getGlossaryBytes()
         Required. Specifies the glossary used for this translation. Use
         this format: projects/*/locations/*/glossaries/*
         
        string glossary = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getGlossaryBytes in interface TranslateTextGlossaryConfigOrBuilder
        Returns:
        The bytes for glossary.
      • setGlossary

        public TranslateTextGlossaryConfig.Builder setGlossary​(String value)
         Required. Specifies the glossary used for this translation. Use
         this format: projects/*/locations/*/glossaries/*
         
        string glossary = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The glossary to set.
        Returns:
        This builder for chaining.
      • clearGlossary

        public TranslateTextGlossaryConfig.Builder clearGlossary()
         Required. Specifies the glossary used for this translation. Use
         this format: projects/*/locations/*/glossaries/*
         
        string glossary = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setGlossaryBytes

        public TranslateTextGlossaryConfig.Builder setGlossaryBytes​(com.google.protobuf.ByteString value)
         Required. Specifies the glossary used for this translation. Use
         this format: projects/*/locations/*/glossaries/*
         
        string glossary = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for glossary to set.
        Returns:
        This builder for chaining.
      • getIgnoreCase

        public boolean getIgnoreCase()
         Optional. Indicates match is case-insensitive.
         Default value is false if missing.
         
        bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getIgnoreCase in interface TranslateTextGlossaryConfigOrBuilder
        Returns:
        The ignoreCase.
      • setIgnoreCase

        public TranslateTextGlossaryConfig.Builder setIgnoreCase​(boolean value)
         Optional. Indicates match is case-insensitive.
         Default value is false if missing.
         
        bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The ignoreCase to set.
        Returns:
        This builder for chaining.
      • clearIgnoreCase

        public TranslateTextGlossaryConfig.Builder clearIgnoreCase()
         Optional. Indicates match is case-insensitive.
         Default value is false if missing.
         
        bool ignore_case = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • mergeUnknownFields

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