Class LogEntryOperation.Builder

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

    public static final class LogEntryOperation.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<LogEntryOperation.Builder>
    implements LogEntryOperationOrBuilder
     Additional information about a potentially long-running operation with which
     a log entry is associated.
     
    Protobuf type google.api.servicecontrol.v1.LogEntryOperation
    • 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<LogEntryOperation.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public LogEntryOperation.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<LogEntryOperation.Builder>
        Throws:
        IOException
      • getId

        public String getId()
         Optional. An arbitrary operation identifier. Log entries with the
         same identifier are assumed to be part of the same operation.
         
        string id = 1;
        Specified by:
        getId in interface LogEntryOperationOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         Optional. An arbitrary operation identifier. Log entries with the
         same identifier are assumed to be part of the same operation.
         
        string id = 1;
        Specified by:
        getIdBytes in interface LogEntryOperationOrBuilder
        Returns:
        The bytes for id.
      • setId

        public LogEntryOperation.Builder setId​(String value)
         Optional. An arbitrary operation identifier. Log entries with the
         same identifier are assumed to be part of the same operation.
         
        string id = 1;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public LogEntryOperation.Builder clearId()
         Optional. An arbitrary operation identifier. Log entries with the
         same identifier are assumed to be part of the same operation.
         
        string id = 1;
        Returns:
        This builder for chaining.
      • setIdBytes

        public LogEntryOperation.Builder setIdBytes​(com.google.protobuf.ByteString value)
         Optional. An arbitrary operation identifier. Log entries with the
         same identifier are assumed to be part of the same operation.
         
        string id = 1;
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • getProducer

        public String getProducer()
         Optional. An arbitrary producer identifier. The combination of
         `id` and `producer` must be globally unique.  Examples for `producer`:
         `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
         
        string producer = 2;
        Specified by:
        getProducer in interface LogEntryOperationOrBuilder
        Returns:
        The producer.
      • getProducerBytes

        public com.google.protobuf.ByteString getProducerBytes()
         Optional. An arbitrary producer identifier. The combination of
         `id` and `producer` must be globally unique.  Examples for `producer`:
         `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
         
        string producer = 2;
        Specified by:
        getProducerBytes in interface LogEntryOperationOrBuilder
        Returns:
        The bytes for producer.
      • setProducer

        public LogEntryOperation.Builder setProducer​(String value)
         Optional. An arbitrary producer identifier. The combination of
         `id` and `producer` must be globally unique.  Examples for `producer`:
         `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
         
        string producer = 2;
        Parameters:
        value - The producer to set.
        Returns:
        This builder for chaining.
      • clearProducer

        public LogEntryOperation.Builder clearProducer()
         Optional. An arbitrary producer identifier. The combination of
         `id` and `producer` must be globally unique.  Examples for `producer`:
         `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
         
        string producer = 2;
        Returns:
        This builder for chaining.
      • setProducerBytes

        public LogEntryOperation.Builder setProducerBytes​(com.google.protobuf.ByteString value)
         Optional. An arbitrary producer identifier. The combination of
         `id` and `producer` must be globally unique.  Examples for `producer`:
         `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
         
        string producer = 2;
        Parameters:
        value - The bytes for producer to set.
        Returns:
        This builder for chaining.
      • getFirst

        public boolean getFirst()
         Optional. Set this to True if this is the first log entry in the operation.
         
        bool first = 3;
        Specified by:
        getFirst in interface LogEntryOperationOrBuilder
        Returns:
        The first.
      • setFirst

        public LogEntryOperation.Builder setFirst​(boolean value)
         Optional. Set this to True if this is the first log entry in the operation.
         
        bool first = 3;
        Parameters:
        value - The first to set.
        Returns:
        This builder for chaining.
      • clearFirst

        public LogEntryOperation.Builder clearFirst()
         Optional. Set this to True if this is the first log entry in the operation.
         
        bool first = 3;
        Returns:
        This builder for chaining.
      • getLast

        public boolean getLast()
         Optional. Set this to True if this is the last log entry in the operation.
         
        bool last = 4;
        Specified by:
        getLast in interface LogEntryOperationOrBuilder
        Returns:
        The last.
      • setLast

        public LogEntryOperation.Builder setLast​(boolean value)
         Optional. Set this to True if this is the last log entry in the operation.
         
        bool last = 4;
        Parameters:
        value - The last to set.
        Returns:
        This builder for chaining.
      • clearLast

        public LogEntryOperation.Builder clearLast()
         Optional. Set this to True if this is the last log entry in the operation.
         
        bool last = 4;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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