Class CreateOccurrenceRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateOccurrenceRequest.Builder>
io.grafeas.v1beta1.CreateOccurrenceRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CreateOccurrenceRequestOrBuilder, Cloneable
Enclosing class:
CreateOccurrenceRequest

public static final class CreateOccurrenceRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateOccurrenceRequest.Builder> implements CreateOccurrenceRequestOrBuilder
 Request to create a new occurrence.
 
Protobuf type grafeas.v1beta1.CreateOccurrenceRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CreateOccurrenceRequest.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.GeneratedMessage.Builder<CreateOccurrenceRequest.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.GeneratedMessage.Builder<CreateOccurrenceRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

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

      public String getParent()
       The name of the project in the form of `projects/[PROJECT_ID]`, under which
       the occurrence is to be created.
       
      string parent = 1;
      Specified by:
      getParent in interface CreateOccurrenceRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       The name of the project in the form of `projects/[PROJECT_ID]`, under which
       the occurrence is to be created.
       
      string parent = 1;
      Specified by:
      getParentBytes in interface CreateOccurrenceRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateOccurrenceRequest.Builder setParent(String value)
       The name of the project in the form of `projects/[PROJECT_ID]`, under which
       the occurrence is to be created.
       
      string parent = 1;
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateOccurrenceRequest.Builder clearParent()
       The name of the project in the form of `projects/[PROJECT_ID]`, under which
       the occurrence is to be created.
       
      string parent = 1;
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateOccurrenceRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       The name of the project in the form of `projects/[PROJECT_ID]`, under which
       the occurrence is to be created.
       
      string parent = 1;
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasOccurrence

      public boolean hasOccurrence()
       The occurrence to create.
       
      .grafeas.v1beta1.Occurrence occurrence = 2;
      Specified by:
      hasOccurrence in interface CreateOccurrenceRequestOrBuilder
      Returns:
      Whether the occurrence field is set.
    • getOccurrence

      public Occurrence getOccurrence()
       The occurrence to create.
       
      .grafeas.v1beta1.Occurrence occurrence = 2;
      Specified by:
      getOccurrence in interface CreateOccurrenceRequestOrBuilder
      Returns:
      The occurrence.
    • setOccurrence

      public CreateOccurrenceRequest.Builder setOccurrence(Occurrence value)
       The occurrence to create.
       
      .grafeas.v1beta1.Occurrence occurrence = 2;
    • setOccurrence

      public CreateOccurrenceRequest.Builder setOccurrence(Occurrence.Builder builderForValue)
       The occurrence to create.
       
      .grafeas.v1beta1.Occurrence occurrence = 2;
    • mergeOccurrence

      public CreateOccurrenceRequest.Builder mergeOccurrence(Occurrence value)
       The occurrence to create.
       
      .grafeas.v1beta1.Occurrence occurrence = 2;
    • clearOccurrence

      public CreateOccurrenceRequest.Builder clearOccurrence()
       The occurrence to create.
       
      .grafeas.v1beta1.Occurrence occurrence = 2;
    • getOccurrenceBuilder

      public Occurrence.Builder getOccurrenceBuilder()
       The occurrence to create.
       
      .grafeas.v1beta1.Occurrence occurrence = 2;
    • getOccurrenceOrBuilder

      public OccurrenceOrBuilder getOccurrenceOrBuilder()
       The occurrence to create.
       
      .grafeas.v1beta1.Occurrence occurrence = 2;
      Specified by:
      getOccurrenceOrBuilder in interface CreateOccurrenceRequestOrBuilder