Package com.google.api.serviceusage.v1
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.v1.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.v1.BatchEnableServicesRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchEnableServicesRequest.Builder
addAllServiceIds(Iterable<String> values)
The identifiers of the services to enable on the project.BatchEnableServicesRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BatchEnableServicesRequest.Builder
addServiceIds(String value)
The identifiers of the services to enable on the project.BatchEnableServicesRequest.Builder
addServiceIdsBytes(com.google.protobuf.ByteString value)
The identifiers of the services to enable on the project.BatchEnableServicesRequest
build()
BatchEnableServicesRequest
buildPartial()
BatchEnableServicesRequest.Builder
clear()
BatchEnableServicesRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
BatchEnableServicesRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
BatchEnableServicesRequest.Builder
clearParent()
Parent to enable services on.BatchEnableServicesRequest.Builder
clearServiceIds()
The identifiers of the services to enable on the project.BatchEnableServicesRequest.Builder
clone()
BatchEnableServicesRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getParent()
Parent to enable services on.com.google.protobuf.ByteString
getParentBytes()
Parent to enable services on.String
getServiceIds(int index)
The identifiers of the services to enable on the project.com.google.protobuf.ByteString
getServiceIdsBytes(int index)
The identifiers of the services to enable on the project.int
getServiceIdsCount()
The identifiers of the services to enable on the project.com.google.protobuf.ProtocolStringList
getServiceIdsList()
The identifiers of the services to enable on the project.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
BatchEnableServicesRequest.Builder
mergeFrom(BatchEnableServicesRequest other)
BatchEnableServicesRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
BatchEnableServicesRequest.Builder
mergeFrom(com.google.protobuf.Message other)
BatchEnableServicesRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BatchEnableServicesRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BatchEnableServicesRequest.Builder
setParent(String value)
Parent to enable services on.BatchEnableServicesRequest.Builder
setParentBytes(com.google.protobuf.ByteString value)
Parent to enable services on.BatchEnableServicesRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
BatchEnableServicesRequest.Builder
setServiceIds(int index, String value)
The identifiers of the services to enable on the project.BatchEnableServicesRequest.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<BatchEnableServicesRequest.Builder>
-
clear
public BatchEnableServicesRequest.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<BatchEnableServicesRequest.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<BatchEnableServicesRequest.Builder>
-
getDefaultInstanceForType
public BatchEnableServicesRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BatchEnableServicesRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BatchEnableServicesRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BatchEnableServicesRequest.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<BatchEnableServicesRequest.Builder>
-
setField
public BatchEnableServicesRequest.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<BatchEnableServicesRequest.Builder>
-
clearField
public BatchEnableServicesRequest.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<BatchEnableServicesRequest.Builder>
-
clearOneof
public BatchEnableServicesRequest.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<BatchEnableServicesRequest.Builder>
-
setRepeatedField
public BatchEnableServicesRequest.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<BatchEnableServicesRequest.Builder>
-
addRepeatedField
public BatchEnableServicesRequest.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<BatchEnableServicesRequest.Builder>
-
mergeFrom
public BatchEnableServicesRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BatchEnableServicesRequest.Builder>
-
mergeFrom
public BatchEnableServicesRequest.Builder mergeFrom(BatchEnableServicesRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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. The `BatchEnableServices` method currently only supports projects.
string parent = 1;
- Specified by:
getParent
in 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. The `BatchEnableServices` method currently only supports projects.
string parent = 1;
- Specified by:
getParentBytes
in 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. 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. 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. 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. 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:
getServiceIdsList
in 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. 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:
getServiceIdsCount
in 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. 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:
getServiceIds
in 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. 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:
getServiceIdsBytes
in 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. 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. 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. 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. 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. 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchEnableServicesRequest.Builder>
-
mergeUnknownFields
public final BatchEnableServicesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchEnableServicesRequest.Builder>
-
-