Package com.google.api.serviceusage.v1
Class BatchGetServicesRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BatchGetServicesRequest.Builder>
-
- com.google.api.serviceusage.v1.BatchGetServicesRequest.Builder
-
- All Implemented Interfaces:
BatchGetServicesRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- BatchGetServicesRequest
public static final class BatchGetServicesRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BatchGetServicesRequest.Builder> implements BatchGetServicesRequestOrBuilder
Request message for the `BatchGetServices` method.
Protobuf typegoogle.api.serviceusage.v1.BatchGetServicesRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchGetServicesRequest.Builder
addAllNames(Iterable<String> values)
Names of the services to retrieve.BatchGetServicesRequest.Builder
addNames(String value)
Names of the services to retrieve.BatchGetServicesRequest.Builder
addNamesBytes(com.google.protobuf.ByteString value)
Names of the services to retrieve.BatchGetServicesRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BatchGetServicesRequest
build()
BatchGetServicesRequest
buildPartial()
BatchGetServicesRequest.Builder
clear()
BatchGetServicesRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
BatchGetServicesRequest.Builder
clearNames()
Names of the services to retrieve.BatchGetServicesRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
BatchGetServicesRequest.Builder
clearParent()
Parent to retrieve services from.BatchGetServicesRequest.Builder
clone()
BatchGetServicesRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getNames(int index)
Names of the services to retrieve.com.google.protobuf.ByteString
getNamesBytes(int index)
Names of the services to retrieve.int
getNamesCount()
Names of the services to retrieve.com.google.protobuf.ProtocolStringList
getNamesList()
Names of the services to retrieve.String
getParent()
Parent to retrieve services from.com.google.protobuf.ByteString
getParentBytes()
Parent to retrieve services from.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
BatchGetServicesRequest.Builder
mergeFrom(BatchGetServicesRequest other)
BatchGetServicesRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
BatchGetServicesRequest.Builder
mergeFrom(com.google.protobuf.Message other)
BatchGetServicesRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BatchGetServicesRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BatchGetServicesRequest.Builder
setNames(int index, String value)
Names of the services to retrieve.BatchGetServicesRequest.Builder
setParent(String value)
Parent to retrieve services from.BatchGetServicesRequest.Builder
setParentBytes(com.google.protobuf.ByteString value)
Parent to retrieve services from.BatchGetServicesRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
BatchGetServicesRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetServicesRequest.Builder>
-
clear
public BatchGetServicesRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetServicesRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetServicesRequest.Builder>
-
getDefaultInstanceForType
public BatchGetServicesRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BatchGetServicesRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BatchGetServicesRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BatchGetServicesRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetServicesRequest.Builder>
-
setField
public BatchGetServicesRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetServicesRequest.Builder>
-
clearField
public BatchGetServicesRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetServicesRequest.Builder>
-
clearOneof
public BatchGetServicesRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetServicesRequest.Builder>
-
setRepeatedField
public BatchGetServicesRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetServicesRequest.Builder>
-
addRepeatedField
public BatchGetServicesRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetServicesRequest.Builder>
-
mergeFrom
public BatchGetServicesRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BatchGetServicesRequest.Builder>
-
mergeFrom
public BatchGetServicesRequest.Builder mergeFrom(BatchGetServicesRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetServicesRequest.Builder>
-
mergeFrom
public BatchGetServicesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BatchGetServicesRequest.Builder>
- Throws:
IOException
-
getParent
public String getParent()
Parent to retrieve services from. If this is set, the parent of all of the services specified in `names` must match this field. An example name would be: `projects/123` where `123` is the project number. The `BatchGetServices` method currently only supports projects.
string parent = 1;
- Specified by:
getParent
in interfaceBatchGetServicesRequestOrBuilder
- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()
Parent to retrieve services from. If this is set, the parent of all of the services specified in `names` must match this field. An example name would be: `projects/123` where `123` is the project number. The `BatchGetServices` method currently only supports projects.
string parent = 1;
- Specified by:
getParentBytes
in interfaceBatchGetServicesRequestOrBuilder
- Returns:
- The bytes for parent.
-
setParent
public BatchGetServicesRequest.Builder setParent(String value)
Parent to retrieve services from. If this is set, the parent of all of the services specified in `names` must match this field. An example name would be: `projects/123` where `123` is the project number. The `BatchGetServices` method currently only supports projects.
string parent = 1;
- Parameters:
value
- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
public BatchGetServicesRequest.Builder clearParent()
Parent to retrieve services from. If this is set, the parent of all of the services specified in `names` must match this field. An example name would be: `projects/123` where `123` is the project number. The `BatchGetServices` method currently only supports projects.
string parent = 1;
- Returns:
- This builder for chaining.
-
setParentBytes
public BatchGetServicesRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
Parent to retrieve services from. If this is set, the parent of all of the services specified in `names` must match this field. An example name would be: `projects/123` where `123` is the project number. The `BatchGetServices` method currently only supports projects.
string parent = 1;
- Parameters:
value
- The bytes for parent to set.- Returns:
- This builder for chaining.
-
getNamesList
public com.google.protobuf.ProtocolStringList getNamesList()
Names of the services to retrieve. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number. A single request can get a maximum of 30 services at a time.
repeated string names = 2;
- Specified by:
getNamesList
in interfaceBatchGetServicesRequestOrBuilder
- Returns:
- A list containing the names.
-
getNamesCount
public int getNamesCount()
Names of the services to retrieve. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number. A single request can get a maximum of 30 services at a time.
repeated string names = 2;
- Specified by:
getNamesCount
in interfaceBatchGetServicesRequestOrBuilder
- Returns:
- The count of names.
-
getNames
public String getNames(int index)
Names of the services to retrieve. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number. A single request can get a maximum of 30 services at a time.
repeated string names = 2;
- Specified by:
getNames
in interfaceBatchGetServicesRequestOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The names at the given index.
-
getNamesBytes
public com.google.protobuf.ByteString getNamesBytes(int index)
Names of the services to retrieve. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number. A single request can get a maximum of 30 services at a time.
repeated string names = 2;
- Specified by:
getNamesBytes
in interfaceBatchGetServicesRequestOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the names at the given index.
-
setNames
public BatchGetServicesRequest.Builder setNames(int index, String value)
Names of the services to retrieve. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number. A single request can get a maximum of 30 services at a time.
repeated string names = 2;
- Parameters:
index
- The index to set the value at.value
- The names to set.- Returns:
- This builder for chaining.
-
addNames
public BatchGetServicesRequest.Builder addNames(String value)
Names of the services to retrieve. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number. A single request can get a maximum of 30 services at a time.
repeated string names = 2;
- Parameters:
value
- The names to add.- Returns:
- This builder for chaining.
-
addAllNames
public BatchGetServicesRequest.Builder addAllNames(Iterable<String> values)
Names of the services to retrieve. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number. A single request can get a maximum of 30 services at a time.
repeated string names = 2;
- Parameters:
values
- The names to add.- Returns:
- This builder for chaining.
-
clearNames
public BatchGetServicesRequest.Builder clearNames()
Names of the services to retrieve. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number. A single request can get a maximum of 30 services at a time.
repeated string names = 2;
- Returns:
- This builder for chaining.
-
addNamesBytes
public BatchGetServicesRequest.Builder addNamesBytes(com.google.protobuf.ByteString value)
Names of the services to retrieve. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number. A single request can get a maximum of 30 services at a time.
repeated string names = 2;
- Parameters:
value
- The bytes of the names to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final BatchGetServicesRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetServicesRequest.Builder>
-
mergeUnknownFields
public final BatchGetServicesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchGetServicesRequest.Builder>
-
-