Class BatchEnableServicesRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BatchEnableServicesRequest.Builder>
-
- com.google.api.serviceusage.v1beta1.BatchEnableServicesRequest.Builder
-
- All Implemented Interfaces:
BatchEnableServicesRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BatchEnableServicesRequest
public static final class BatchEnableServicesRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BatchEnableServicesRequest.Builder> implements BatchEnableServicesRequestOrBuilder
Request message for the `BatchEnableServices` method.
Protobuf typegoogle.api.serviceusage.v1beta1.BatchEnableServicesRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchEnableServicesRequest.BuilderaddAllServiceIds(Iterable<String> values)The identifiers of the services to enable on the project.BatchEnableServicesRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BatchEnableServicesRequest.BuilderaddServiceIds(String value)The identifiers of the services to enable on the project.BatchEnableServicesRequest.BuilderaddServiceIdsBytes(com.google.protobuf.ByteString value)The identifiers of the services to enable on the project.BatchEnableServicesRequestbuild()BatchEnableServicesRequestbuildPartial()BatchEnableServicesRequest.Builderclear()BatchEnableServicesRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)BatchEnableServicesRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)BatchEnableServicesRequest.BuilderclearParent()Parent to enable services on.BatchEnableServicesRequest.BuilderclearServiceIds()The identifiers of the services to enable on the project.BatchEnableServicesRequest.Builderclone()BatchEnableServicesRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetParent()Parent to enable services on.com.google.protobuf.ByteStringgetParentBytes()Parent to enable services on.StringgetServiceIds(int index)The identifiers of the services to enable on the project.com.google.protobuf.ByteStringgetServiceIdsBytes(int index)The identifiers of the services to enable on the project.intgetServiceIdsCount()The identifiers of the services to enable on the project.com.google.protobuf.ProtocolStringListgetServiceIdsList()The identifiers of the services to enable on the project.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()BatchEnableServicesRequest.BuildermergeFrom(BatchEnableServicesRequest other)BatchEnableServicesRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)BatchEnableServicesRequest.BuildermergeFrom(com.google.protobuf.Message other)BatchEnableServicesRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)BatchEnableServicesRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)BatchEnableServicesRequest.BuildersetParent(String value)Parent to enable services on.BatchEnableServicesRequest.BuildersetParentBytes(com.google.protobuf.ByteString value)Parent to enable services on.BatchEnableServicesRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)BatchEnableServicesRequest.BuildersetServiceIds(int index, String value)The identifiers of the services to enable on the project.BatchEnableServicesRequest.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchEnableServicesRequest.Builder>
-
clear
public BatchEnableServicesRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchEnableServicesRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchEnableServicesRequest.Builder>
-
getDefaultInstanceForType
public BatchEnableServicesRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BatchEnableServicesRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BatchEnableServicesRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BatchEnableServicesRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchEnableServicesRequest.Builder>
-
setField
public BatchEnableServicesRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchEnableServicesRequest.Builder>
-
clearField
public BatchEnableServicesRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchEnableServicesRequest.Builder>
-
clearOneof
public BatchEnableServicesRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchEnableServicesRequest.Builder>
-
setRepeatedField
public BatchEnableServicesRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchEnableServicesRequest.Builder>
-
addRepeatedField
public BatchEnableServicesRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchEnableServicesRequest.Builder>
-
mergeFrom
public BatchEnableServicesRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchEnableServicesRequest.Builder>
-
mergeFrom
public BatchEnableServicesRequest.Builder mergeFrom(BatchEnableServicesRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchEnableServicesRequest.Builder>
-
mergeFrom
public BatchEnableServicesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchEnableServicesRequest.Builder>- Throws:
IOException
-
getParent
public String getParent()
Parent to enable services on. An example name would be: `projects/123` where `123` is the project number (not project ID). The `BatchEnableServices` method currently only supports projects.
string parent = 1;- Specified by:
getParentin interfaceBatchEnableServicesRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()
Parent to enable services on. An example name would be: `projects/123` where `123` is the project number (not project ID). The `BatchEnableServices` method currently only supports projects.
string parent = 1;- Specified by:
getParentBytesin interfaceBatchEnableServicesRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
public BatchEnableServicesRequest.Builder setParent(String value)
Parent to enable services on. An example name would be: `projects/123` where `123` is the project number (not project ID). The `BatchEnableServices` method currently only supports projects.
string parent = 1;- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
public BatchEnableServicesRequest.Builder clearParent()
Parent to enable services on. An example name would be: `projects/123` where `123` is the project number (not project ID). The `BatchEnableServices` method currently only supports projects.
string parent = 1;- Returns:
- This builder for chaining.
-
setParentBytes
public BatchEnableServicesRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
Parent to enable services on. An example name would be: `projects/123` where `123` is the project number (not project ID). The `BatchEnableServices` method currently only supports projects.
string parent = 1;- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
getServiceIdsList
public com.google.protobuf.ProtocolStringList getServiceIdsList()
The identifiers of the services to enable on the project. A valid identifier would be: serviceusage.googleapis.com Enabling services requires that each service is public or is shared with the user enabling the service. Two or more services must be specified. To enable a single service, use the `EnableService` method instead. A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.
repeated string service_ids = 2;- Specified by:
getServiceIdsListin interfaceBatchEnableServicesRequestOrBuilder- Returns:
- A list containing the serviceIds.
-
getServiceIdsCount
public int getServiceIdsCount()
The identifiers of the services to enable on the project. A valid identifier would be: serviceusage.googleapis.com Enabling services requires that each service is public or is shared with the user enabling the service. Two or more services must be specified. To enable a single service, use the `EnableService` method instead. A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.
repeated string service_ids = 2;- Specified by:
getServiceIdsCountin interfaceBatchEnableServicesRequestOrBuilder- Returns:
- The count of serviceIds.
-
getServiceIds
public String getServiceIds(int index)
The identifiers of the services to enable on the project. A valid identifier would be: serviceusage.googleapis.com Enabling services requires that each service is public or is shared with the user enabling the service. Two or more services must be specified. To enable a single service, use the `EnableService` method instead. A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.
repeated string service_ids = 2;- Specified by:
getServiceIdsin interfaceBatchEnableServicesRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The serviceIds at the given index.
-
getServiceIdsBytes
public com.google.protobuf.ByteString getServiceIdsBytes(int index)
The identifiers of the services to enable on the project. A valid identifier would be: serviceusage.googleapis.com Enabling services requires that each service is public or is shared with the user enabling the service. Two or more services must be specified. To enable a single service, use the `EnableService` method instead. A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.
repeated string service_ids = 2;- Specified by:
getServiceIdsBytesin interfaceBatchEnableServicesRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the serviceIds at the given index.
-
setServiceIds
public BatchEnableServicesRequest.Builder setServiceIds(int index, String value)
The identifiers of the services to enable on the project. A valid identifier would be: serviceusage.googleapis.com Enabling services requires that each service is public or is shared with the user enabling the service. Two or more services must be specified. To enable a single service, use the `EnableService` method instead. A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.
repeated string service_ids = 2;- Parameters:
index- The index to set the value at.value- The serviceIds to set.- Returns:
- This builder for chaining.
-
addServiceIds
public BatchEnableServicesRequest.Builder addServiceIds(String value)
The identifiers of the services to enable on the project. A valid identifier would be: serviceusage.googleapis.com Enabling services requires that each service is public or is shared with the user enabling the service. Two or more services must be specified. To enable a single service, use the `EnableService` method instead. A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.
repeated string service_ids = 2;- Parameters:
value- The serviceIds to add.- Returns:
- This builder for chaining.
-
addAllServiceIds
public BatchEnableServicesRequest.Builder addAllServiceIds(Iterable<String> values)
The identifiers of the services to enable on the project. A valid identifier would be: serviceusage.googleapis.com Enabling services requires that each service is public or is shared with the user enabling the service. Two or more services must be specified. To enable a single service, use the `EnableService` method instead. A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.
repeated string service_ids = 2;- Parameters:
values- The serviceIds to add.- Returns:
- This builder for chaining.
-
clearServiceIds
public BatchEnableServicesRequest.Builder clearServiceIds()
The identifiers of the services to enable on the project. A valid identifier would be: serviceusage.googleapis.com Enabling services requires that each service is public or is shared with the user enabling the service. Two or more services must be specified. To enable a single service, use the `EnableService` method instead. A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.
repeated string service_ids = 2;- Returns:
- This builder for chaining.
-
addServiceIdsBytes
public BatchEnableServicesRequest.Builder addServiceIdsBytes(com.google.protobuf.ByteString value)
The identifiers of the services to enable on the project. A valid identifier would be: serviceusage.googleapis.com Enabling services requires that each service is public or is shared with the user enabling the service. Two or more services must be specified. To enable a single service, use the `EnableService` method instead. A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.
repeated string service_ids = 2;- Parameters:
value- The bytes of the serviceIds to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final BatchEnableServicesRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchEnableServicesRequest.Builder>
-
mergeUnknownFields
public final BatchEnableServicesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchEnableServicesRequest.Builder>
-
-