Package com.google.api.serviceusage.v1
Class Service.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
- com.google.api.serviceusage.v1.Service.Builder
-
- All Implemented Interfaces:
ServiceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Service
public static final class Service.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Service.Builder> implements ServiceOrBuilder
A service that is available for use by the consumer.
Protobuf typegoogle.api.serviceusage.v1.Service
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Service.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Servicebuild()ServicebuildPartial()Service.Builderclear()Service.BuilderclearConfig()The service configuration of the available service.Service.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Service.BuilderclearName()The resource name of the consumer and service.Service.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Service.BuilderclearParent()The resource name of the consumer.Service.BuilderclearState()Whether or not the service has been enabled for use by the consumer.Service.Builderclone()ServiceConfiggetConfig()The service configuration of the available service.ServiceConfig.BuildergetConfigBuilder()The service configuration of the available service.ServiceConfigOrBuildergetConfigOrBuilder()The service configuration of the available service.ServicegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()The resource name of the consumer and service.com.google.protobuf.ByteStringgetNameBytes()The resource name of the consumer and service.StringgetParent()The resource name of the consumer.com.google.protobuf.ByteStringgetParentBytes()The resource name of the consumer.StategetState()Whether or not the service has been enabled for use by the consumer.intgetStateValue()Whether or not the service has been enabled for use by the consumer.booleanhasConfig()The service configuration of the available service.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Service.BuildermergeConfig(ServiceConfig value)The service configuration of the available service.Service.BuildermergeFrom(Service other)Service.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Service.BuildermergeFrom(com.google.protobuf.Message other)Service.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Service.BuildersetConfig(ServiceConfig value)The service configuration of the available service.Service.BuildersetConfig(ServiceConfig.Builder builderForValue)The service configuration of the available service.Service.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Service.BuildersetName(String value)The resource name of the consumer and service.Service.BuildersetNameBytes(com.google.protobuf.ByteString value)The resource name of the consumer and service.Service.BuildersetParent(String value)The resource name of the consumer.Service.BuildersetParentBytes(com.google.protobuf.ByteString value)The resource name of the consumer.Service.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Service.BuildersetState(State value)Whether or not the service has been enabled for use by the consumer.Service.BuildersetStateValue(int value)Whether or not the service has been enabled for use by the consumer.Service.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<Service.Builder>
-
clear
public Service.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<Service.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<Service.Builder>
-
getDefaultInstanceForType
public Service getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Service build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Service buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Service.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<Service.Builder>
-
setField
public Service.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<Service.Builder>
-
clearField
public Service.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
clearOneof
public Service.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
setRepeatedField
public Service.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<Service.Builder>
-
addRepeatedField
public Service.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<Service.Builder>
-
mergeFrom
public Service.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Service.Builder>
-
mergeFrom
public Service.Builder mergeFrom(Service other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
mergeFrom
public Service.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<Service.Builder>- Throws:
IOException
-
getName
public String getName()
The resource name of the consumer and service. A valid name would be: - projects/123/services/serviceusage.googleapis.com
string name = 1;- Specified by:
getNamein interfaceServiceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The resource name of the consumer and service. A valid name would be: - projects/123/services/serviceusage.googleapis.com
string name = 1;- Specified by:
getNameBytesin interfaceServiceOrBuilder- Returns:
- The bytes for name.
-
setName
public Service.Builder setName(String value)
The resource name of the consumer and service. A valid name would be: - projects/123/services/serviceusage.googleapis.com
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Service.Builder clearName()
The resource name of the consumer and service. A valid name would be: - projects/123/services/serviceusage.googleapis.com
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public Service.Builder setNameBytes(com.google.protobuf.ByteString value)
The resource name of the consumer and service. A valid name would be: - projects/123/services/serviceusage.googleapis.com
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getParent
public String getParent()
The resource name of the consumer. A valid name would be: - projects/123
string parent = 5;- Specified by:
getParentin interfaceServiceOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()
The resource name of the consumer. A valid name would be: - projects/123
string parent = 5;- Specified by:
getParentBytesin interfaceServiceOrBuilder- Returns:
- The bytes for parent.
-
setParent
public Service.Builder setParent(String value)
The resource name of the consumer. A valid name would be: - projects/123
string parent = 5;- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
public Service.Builder clearParent()
The resource name of the consumer. A valid name would be: - projects/123
string parent = 5;- Returns:
- This builder for chaining.
-
setParentBytes
public Service.Builder setParentBytes(com.google.protobuf.ByteString value)
The resource name of the consumer. A valid name would be: - projects/123
string parent = 5;- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
hasConfig
public boolean hasConfig()
The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the `ListServices` method. These fields are present only in responses to the `GetService` method.
.google.api.serviceusage.v1.ServiceConfig config = 2;- Specified by:
hasConfigin interfaceServiceOrBuilder- Returns:
- Whether the config field is set.
-
getConfig
public ServiceConfig getConfig()
The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the `ListServices` method. These fields are present only in responses to the `GetService` method.
.google.api.serviceusage.v1.ServiceConfig config = 2;- Specified by:
getConfigin interfaceServiceOrBuilder- Returns:
- The config.
-
setConfig
public Service.Builder setConfig(ServiceConfig value)
The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the `ListServices` method. These fields are present only in responses to the `GetService` method.
.google.api.serviceusage.v1.ServiceConfig config = 2;
-
setConfig
public Service.Builder setConfig(ServiceConfig.Builder builderForValue)
The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the `ListServices` method. These fields are present only in responses to the `GetService` method.
.google.api.serviceusage.v1.ServiceConfig config = 2;
-
mergeConfig
public Service.Builder mergeConfig(ServiceConfig value)
The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the `ListServices` method. These fields are present only in responses to the `GetService` method.
.google.api.serviceusage.v1.ServiceConfig config = 2;
-
clearConfig
public Service.Builder clearConfig()
The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the `ListServices` method. These fields are present only in responses to the `GetService` method.
.google.api.serviceusage.v1.ServiceConfig config = 2;
-
getConfigBuilder
public ServiceConfig.Builder getConfigBuilder()
The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the `ListServices` method. These fields are present only in responses to the `GetService` method.
.google.api.serviceusage.v1.ServiceConfig config = 2;
-
getConfigOrBuilder
public ServiceConfigOrBuilder getConfigOrBuilder()
The service configuration of the available service. Some fields may be filtered out of the configuration in responses to the `ListServices` method. These fields are present only in responses to the `GetService` method.
.google.api.serviceusage.v1.ServiceConfig config = 2;- Specified by:
getConfigOrBuilderin interfaceServiceOrBuilder
-
getStateValue
public int getStateValue()
Whether or not the service has been enabled for use by the consumer.
.google.api.serviceusage.v1.State state = 4;- Specified by:
getStateValuein interfaceServiceOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public Service.Builder setStateValue(int value)
Whether or not the service has been enabled for use by the consumer.
.google.api.serviceusage.v1.State state = 4;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
public State getState()
Whether or not the service has been enabled for use by the consumer.
.google.api.serviceusage.v1.State state = 4;- Specified by:
getStatein interfaceServiceOrBuilder- Returns:
- The state.
-
setState
public Service.Builder setState(State value)
Whether or not the service has been enabled for use by the consumer.
.google.api.serviceusage.v1.State state = 4;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
public Service.Builder clearState()
Whether or not the service has been enabled for use by the consumer.
.google.api.serviceusage.v1.State state = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Service.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
mergeUnknownFields
public final Service.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.Builder>
-
-