Package com.google.api.apikeys.v2
Interface ApiTargetOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ApiTarget
,ApiTarget.Builder
public interface ApiTargetOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getMethods(int index)
Optional.com.google.protobuf.ByteString
getMethodsBytes(int index)
Optional.int
getMethodsCount()
Optional.List<String>
getMethodsList()
Optional.String
getService()
The service for this restriction.com.google.protobuf.ByteString
getServiceBytes()
The service for this restriction.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getService
String getService()
The service for this restriction. It should be the canonical service name, for example: `translate.googleapis.com`. You can use [`gcloud services list`](/sdk/gcloud/reference/services/list) to get a list of services that are enabled in the project.
string service = 1;
- Returns:
- The service.
-
getServiceBytes
com.google.protobuf.ByteString getServiceBytes()
The service for this restriction. It should be the canonical service name, for example: `translate.googleapis.com`. You can use [`gcloud services list`](/sdk/gcloud/reference/services/list) to get a list of services that are enabled in the project.
string service = 1;
- Returns:
- The bytes for service.
-
getMethodsList
List<String> getMethodsList()
Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol. Valid examples: `google.cloud.translate.v2.TranslateService.GetSupportedLanguage` `TranslateText` `Get*` `translate.googleapis.com.Get*`
repeated string methods = 2 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- A list containing the methods.
-
getMethodsCount
int getMethodsCount()
Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol. Valid examples: `google.cloud.translate.v2.TranslateService.GetSupportedLanguage` `TranslateText` `Get*` `translate.googleapis.com.Get*`
repeated string methods = 2 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The count of methods.
-
getMethods
String getMethods(int index)
Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol. Valid examples: `google.cloud.translate.v2.TranslateService.GetSupportedLanguage` `TranslateText` `Get*` `translate.googleapis.com.Get*`
repeated string methods = 2 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
index
- The index of the element to return.- Returns:
- The methods at the given index.
-
getMethodsBytes
com.google.protobuf.ByteString getMethodsBytes(int index)
Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (*) can be used as the last symbol. Valid examples: `google.cloud.translate.v2.TranslateService.GetSupportedLanguage` `TranslateText` `Get*` `translate.googleapis.com.Get*`
repeated string methods = 2 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the methods at the given index.
-
-