Class ServiceConfig

  • All Implemented Interfaces:
    ServiceConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class ServiceConfig
    extends com.google.protobuf.GeneratedMessageV3
    implements ServiceConfigOrBuilder
     The configuration of the service.
     
    Protobuf type google.api.serviceusage.v1beta1.ServiceConfig
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ServiceConfig.Builder
      The configuration of the service.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • getName

        public String getName()
         The DNS address at which this service is available.
        
         An example DNS address would be:
         `calendar.googleapis.com`.
         
        string name = 1;
        Specified by:
        getName in interface ServiceConfigOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The DNS address at which this service is available.
        
         An example DNS address would be:
         `calendar.googleapis.com`.
         
        string name = 1;
        Specified by:
        getNameBytes in interface ServiceConfigOrBuilder
        Returns:
        The bytes for name.
      • getTitleBytes

        public com.google.protobuf.ByteString getTitleBytes()
         The product title for this service.
         
        string title = 2;
        Specified by:
        getTitleBytes in interface ServiceConfigOrBuilder
        Returns:
        The bytes for title.
      • getApisList

        public List<com.google.protobuf.Api> getApisList()
         A list of API interfaces exported by this service. Contains only the names,
         versions, and method names of the interfaces.
         
        repeated .google.protobuf.Api apis = 3;
        Specified by:
        getApisList in interface ServiceConfigOrBuilder
      • getApisOrBuilderList

        public List<? extends com.google.protobuf.ApiOrBuilder> getApisOrBuilderList()
         A list of API interfaces exported by this service. Contains only the names,
         versions, and method names of the interfaces.
         
        repeated .google.protobuf.Api apis = 3;
        Specified by:
        getApisOrBuilderList in interface ServiceConfigOrBuilder
      • getApisCount

        public int getApisCount()
         A list of API interfaces exported by this service. Contains only the names,
         versions, and method names of the interfaces.
         
        repeated .google.protobuf.Api apis = 3;
        Specified by:
        getApisCount in interface ServiceConfigOrBuilder
      • getApis

        public com.google.protobuf.Api getApis​(int index)
         A list of API interfaces exported by this service. Contains only the names,
         versions, and method names of the interfaces.
         
        repeated .google.protobuf.Api apis = 3;
        Specified by:
        getApis in interface ServiceConfigOrBuilder
      • getApisOrBuilder

        public com.google.protobuf.ApiOrBuilder getApisOrBuilder​(int index)
         A list of API interfaces exported by this service. Contains only the names,
         versions, and method names of the interfaces.
         
        repeated .google.protobuf.Api apis = 3;
        Specified by:
        getApisOrBuilder in interface ServiceConfigOrBuilder
      • hasDocumentation

        public boolean hasDocumentation()
         Additional API documentation. Contains only the summary and the
         documentation URL.
         
        .google.api.Documentation documentation = 6;
        Specified by:
        hasDocumentation in interface ServiceConfigOrBuilder
        Returns:
        Whether the documentation field is set.
      • getDocumentation

        public com.google.api.Documentation getDocumentation()
         Additional API documentation. Contains only the summary and the
         documentation URL.
         
        .google.api.Documentation documentation = 6;
        Specified by:
        getDocumentation in interface ServiceConfigOrBuilder
        Returns:
        The documentation.
      • getDocumentationOrBuilder

        public com.google.api.DocumentationOrBuilder getDocumentationOrBuilder()
         Additional API documentation. Contains only the summary and the
         documentation URL.
         
        .google.api.Documentation documentation = 6;
        Specified by:
        getDocumentationOrBuilder in interface ServiceConfigOrBuilder
      • hasQuota

        public boolean hasQuota()
         Quota configuration.
         
        .google.api.Quota quota = 10;
        Specified by:
        hasQuota in interface ServiceConfigOrBuilder
        Returns:
        Whether the quota field is set.
      • getQuota

        public com.google.api.Quota getQuota()
         Quota configuration.
         
        .google.api.Quota quota = 10;
        Specified by:
        getQuota in interface ServiceConfigOrBuilder
        Returns:
        The quota.
      • getQuotaOrBuilder

        public com.google.api.QuotaOrBuilder getQuotaOrBuilder()
         Quota configuration.
         
        .google.api.Quota quota = 10;
        Specified by:
        getQuotaOrBuilder in interface ServiceConfigOrBuilder
      • hasAuthentication

        public boolean hasAuthentication()
         Auth configuration. Contains only the OAuth rules.
         
        .google.api.Authentication authentication = 11;
        Specified by:
        hasAuthentication in interface ServiceConfigOrBuilder
        Returns:
        Whether the authentication field is set.
      • getAuthentication

        public com.google.api.Authentication getAuthentication()
         Auth configuration. Contains only the OAuth rules.
         
        .google.api.Authentication authentication = 11;
        Specified by:
        getAuthentication in interface ServiceConfigOrBuilder
        Returns:
        The authentication.
      • getAuthenticationOrBuilder

        public com.google.api.AuthenticationOrBuilder getAuthenticationOrBuilder()
         Auth configuration. Contains only the OAuth rules.
         
        .google.api.Authentication authentication = 11;
        Specified by:
        getAuthenticationOrBuilder in interface ServiceConfigOrBuilder
      • hasUsage

        public boolean hasUsage()
         Configuration controlling usage of this service.
         
        .google.api.Usage usage = 15;
        Specified by:
        hasUsage in interface ServiceConfigOrBuilder
        Returns:
        Whether the usage field is set.
      • getUsage

        public com.google.api.Usage getUsage()
         Configuration controlling usage of this service.
         
        .google.api.Usage usage = 15;
        Specified by:
        getUsage in interface ServiceConfigOrBuilder
        Returns:
        The usage.
      • getUsageOrBuilder

        public com.google.api.UsageOrBuilder getUsageOrBuilder()
         Configuration controlling usage of this service.
         
        .google.api.Usage usage = 15;
        Specified by:
        getUsageOrBuilder in interface ServiceConfigOrBuilder
      • getEndpointsList

        public List<com.google.api.Endpoint> getEndpointsList()
         Configuration for network endpoints. Contains only the names and aliases
         of the endpoints.
         
        repeated .google.api.Endpoint endpoints = 18;
        Specified by:
        getEndpointsList in interface ServiceConfigOrBuilder
      • getEndpointsOrBuilderList

        public List<? extends com.google.api.EndpointOrBuilder> getEndpointsOrBuilderList()
         Configuration for network endpoints. Contains only the names and aliases
         of the endpoints.
         
        repeated .google.api.Endpoint endpoints = 18;
        Specified by:
        getEndpointsOrBuilderList in interface ServiceConfigOrBuilder
      • getEndpointsCount

        public int getEndpointsCount()
         Configuration for network endpoints. Contains only the names and aliases
         of the endpoints.
         
        repeated .google.api.Endpoint endpoints = 18;
        Specified by:
        getEndpointsCount in interface ServiceConfigOrBuilder
      • getEndpoints

        public com.google.api.Endpoint getEndpoints​(int index)
         Configuration for network endpoints. Contains only the names and aliases
         of the endpoints.
         
        repeated .google.api.Endpoint endpoints = 18;
        Specified by:
        getEndpoints in interface ServiceConfigOrBuilder
      • getEndpointsOrBuilder

        public com.google.api.EndpointOrBuilder getEndpointsOrBuilder​(int index)
         Configuration for network endpoints. Contains only the names and aliases
         of the endpoints.
         
        repeated .google.api.Endpoint endpoints = 18;
        Specified by:
        getEndpointsOrBuilder in interface ServiceConfigOrBuilder
      • getMonitoredResourcesList

        public List<com.google.api.MonitoredResourceDescriptor> getMonitoredResourcesList()
         Defines the monitored resources used by this service. This is required
         by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
         
        repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
        Specified by:
        getMonitoredResourcesList in interface ServiceConfigOrBuilder
      • getMonitoredResourcesOrBuilderList

        public List<? extends com.google.api.MonitoredResourceDescriptorOrBuilder> getMonitoredResourcesOrBuilderList()
         Defines the monitored resources used by this service. This is required
         by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
         
        repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
        Specified by:
        getMonitoredResourcesOrBuilderList in interface ServiceConfigOrBuilder
      • getMonitoredResourcesCount

        public int getMonitoredResourcesCount()
         Defines the monitored resources used by this service. This is required
         by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
         
        repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
        Specified by:
        getMonitoredResourcesCount in interface ServiceConfigOrBuilder
      • getMonitoredResources

        public com.google.api.MonitoredResourceDescriptor getMonitoredResources​(int index)
         Defines the monitored resources used by this service. This is required
         by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
         
        repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
        Specified by:
        getMonitoredResources in interface ServiceConfigOrBuilder
      • getMonitoredResourcesOrBuilder

        public com.google.api.MonitoredResourceDescriptorOrBuilder getMonitoredResourcesOrBuilder​(int index)
         Defines the monitored resources used by this service. This is required
         by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
         
        repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25;
        Specified by:
        getMonitoredResourcesOrBuilder in interface ServiceConfigOrBuilder
      • hasMonitoring

        public boolean hasMonitoring()
         Monitoring configuration.
         This should not include the 'producer_destinations' field.
         
        .google.api.Monitoring monitoring = 28;
        Specified by:
        hasMonitoring in interface ServiceConfigOrBuilder
        Returns:
        Whether the monitoring field is set.
      • getMonitoring

        public com.google.api.Monitoring getMonitoring()
         Monitoring configuration.
         This should not include the 'producer_destinations' field.
         
        .google.api.Monitoring monitoring = 28;
        Specified by:
        getMonitoring in interface ServiceConfigOrBuilder
        Returns:
        The monitoring.
      • getMonitoringOrBuilder

        public com.google.api.MonitoringOrBuilder getMonitoringOrBuilder()
         Monitoring configuration.
         This should not include the 'producer_destinations' field.
         
        .google.api.Monitoring monitoring = 28;
        Specified by:
        getMonitoringOrBuilder in interface ServiceConfigOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static ServiceConfig parseFrom​(ByteBuffer data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ServiceConfig parseFrom​(ByteBuffer data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ServiceConfig parseFrom​(com.google.protobuf.ByteString data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ServiceConfig parseFrom​(com.google.protobuf.ByteString data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ServiceConfig parseFrom​(byte[] data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ServiceConfig parseFrom​(byte[] data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ServiceConfig parseFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws IOException
        Throws:
        IOException
      • newBuilderForType

        public ServiceConfig.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public ServiceConfig.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected ServiceConfig.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static ServiceConfig getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<ServiceConfig> parser()
      • getParserForType

        public com.google.protobuf.Parser<ServiceConfig> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public ServiceConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder