Class GcsSource.Builder

  • All Implemented Interfaces:
    GcsSourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    GcsSource

    public static final class GcsSource.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder>
    implements GcsSourceOrBuilder
     Defines how to access Cloud Storage source.
     
    Protobuf type google.cloud.privatecatalog.v1beta1.GcsSource
    • 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<GcsSource.Builder>
      • clear

        public GcsSource.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.GeneratedMessageV3.Builder<GcsSource.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<GcsSource.Builder>
      • getDefaultInstanceForType

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

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

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

        public GcsSource.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder>
      • setField

        public GcsSource.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                          Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder>
      • clearField

        public GcsSource.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder>
      • clearOneof

        public GcsSource.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder>
      • setRepeatedField

        public GcsSource.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  int index,
                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder>
      • addRepeatedField

        public GcsSource.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GcsSource.Builder>
      • mergeFrom

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

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

        public GcsSource.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<GcsSource.Builder>
        Throws:
        IOException
      • getGcsPath

        public String getGcsPath()
         Output only. the cloud storage object path.
         
        string gcs_path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getGcsPath in interface GcsSourceOrBuilder
        Returns:
        The gcsPath.
      • getGcsPathBytes

        public com.google.protobuf.ByteString getGcsPathBytes()
         Output only. the cloud storage object path.
         
        string gcs_path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getGcsPathBytes in interface GcsSourceOrBuilder
        Returns:
        The bytes for gcsPath.
      • setGcsPath

        public GcsSource.Builder setGcsPath​(String value)
         Output only. the cloud storage object path.
         
        string gcs_path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The gcsPath to set.
        Returns:
        This builder for chaining.
      • clearGcsPath

        public GcsSource.Builder clearGcsPath()
         Output only. the cloud storage object path.
         
        string gcs_path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setGcsPathBytes

        public GcsSource.Builder setGcsPathBytes​(com.google.protobuf.ByteString value)
         Output only. the cloud storage object path.
         
        string gcs_path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for gcsPath to set.
        Returns:
        This builder for chaining.
      • getGeneration

        public long getGeneration()
         Output only. Generation of the object, which is set when the content of an object starts
         being written.
         
        int64 generation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getGeneration in interface GcsSourceOrBuilder
        Returns:
        The generation.
      • setGeneration

        public GcsSource.Builder setGeneration​(long value)
         Output only. Generation of the object, which is set when the content of an object starts
         being written.
         
        int64 generation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The generation to set.
        Returns:
        This builder for chaining.
      • clearGeneration

        public GcsSource.Builder clearGeneration()
         Output only. Generation of the object, which is set when the content of an object starts
         being written.
         
        int64 generation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The time when the object metadata was last changed.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface GcsSourceOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The time when the object metadata was last changed.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface GcsSourceOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public GcsSource.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the object metadata was last changed.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public GcsSource.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time when the object metadata was last changed.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public GcsSource.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the object metadata was last changed.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearUpdateTime

        public GcsSource.Builder clearUpdateTime()
         Output only. The time when the object metadata was last changed.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. The time when the object metadata was last changed.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The time when the object metadata was last changed.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface GcsSourceOrBuilder
      • setUnknownFields

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

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