Package io.grafeas.v1

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

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

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

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

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

        public String getParent()
         The name of the project in the form of `projects/[PROJECT_ID]`, under which
         the occurrences are to be created.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface BatchCreateOccurrencesRequestOrBuilder
        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 occurrences are to be created.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface BatchCreateOccurrencesRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public BatchCreateOccurrencesRequest.Builder setParent​(String value)
         The name of the project in the form of `projects/[PROJECT_ID]`, under which
         the occurrences are to be created.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public BatchCreateOccurrencesRequest.Builder clearParent()
         The name of the project in the form of `projects/[PROJECT_ID]`, under which
         the occurrences are to be created.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public BatchCreateOccurrencesRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         The name of the project in the form of `projects/[PROJECT_ID]`, under which
         the occurrences are to be created.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • getOccurrencesCount

        public int getOccurrencesCount()
         The occurrences to create. Max allowed length is 1000.
         
        repeated .grafeas.v1.Occurrence occurrences = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getOccurrencesCount in interface BatchCreateOccurrencesRequestOrBuilder
      • setOccurrences

        public BatchCreateOccurrencesRequest.Builder setOccurrences​(int index,
                                                                    Occurrence value)
         The occurrences to create. Max allowed length is 1000.
         
        repeated .grafeas.v1.Occurrence occurrences = 2 [(.google.api.field_behavior) = REQUIRED];
      • setOccurrences

        public BatchCreateOccurrencesRequest.Builder setOccurrences​(int index,
                                                                    Occurrence.Builder builderForValue)
         The occurrences to create. Max allowed length is 1000.
         
        repeated .grafeas.v1.Occurrence occurrences = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOccurrences

        public BatchCreateOccurrencesRequest.Builder addOccurrences​(Occurrence value)
         The occurrences to create. Max allowed length is 1000.
         
        repeated .grafeas.v1.Occurrence occurrences = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOccurrences

        public BatchCreateOccurrencesRequest.Builder addOccurrences​(int index,
                                                                    Occurrence value)
         The occurrences to create. Max allowed length is 1000.
         
        repeated .grafeas.v1.Occurrence occurrences = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOccurrences

        public BatchCreateOccurrencesRequest.Builder addOccurrences​(int index,
                                                                    Occurrence.Builder builderForValue)
         The occurrences to create. Max allowed length is 1000.
         
        repeated .grafeas.v1.Occurrence occurrences = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearOccurrences

        public BatchCreateOccurrencesRequest.Builder clearOccurrences()
         The occurrences to create. Max allowed length is 1000.
         
        repeated .grafeas.v1.Occurrence occurrences = 2 [(.google.api.field_behavior) = REQUIRED];
      • removeOccurrences

        public BatchCreateOccurrencesRequest.Builder removeOccurrences​(int index)
         The occurrences to create. Max allowed length is 1000.
         
        repeated .grafeas.v1.Occurrence occurrences = 2 [(.google.api.field_behavior) = REQUIRED];
      • getOccurrencesBuilder

        public Occurrence.Builder getOccurrencesBuilder​(int index)
         The occurrences to create. Max allowed length is 1000.
         
        repeated .grafeas.v1.Occurrence occurrences = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOccurrencesBuilder

        public Occurrence.Builder addOccurrencesBuilder()
         The occurrences to create. Max allowed length is 1000.
         
        repeated .grafeas.v1.Occurrence occurrences = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOccurrencesBuilder

        public Occurrence.Builder addOccurrencesBuilder​(int index)
         The occurrences to create. Max allowed length is 1000.
         
        repeated .grafeas.v1.Occurrence occurrences = 2 [(.google.api.field_behavior) = REQUIRED];
      • getOccurrencesBuilderList

        public List<Occurrence.Builder> getOccurrencesBuilderList()
         The occurrences to create. Max allowed length is 1000.
         
        repeated .grafeas.v1.Occurrence occurrences = 2 [(.google.api.field_behavior) = REQUIRED];